我正在开发一个启用Multidex的应用程序,以避免65k的限制.我想在Jar类型中添加一个外部库(即iPay Jar SDK).我已经同步了Gradle并取得了成功,但我没能运行该项目.
错误消息如下所示
Error:Execution failed for task ':app:shrinkDebugMultiDexComponents'.
Run Code Online (Sandbox Code Playgroud)
java.io.IOException: Can't read [/[dir]/app/build/intermediates/multi-dex/debug/allclasses.jar] (Can't process class [com/ipay/IpayAcitivity.class] (Unknown verification type [14] in stack map frame))
这是我的Gradle Code
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
def AAVersion = '3.2'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
repositories {
mavenCentral()
mavenLocal()
}
apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
resourcePackageName '[My Package]'
}
}
dependencies {
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
compile fileTree(dir: 'libs', include: ['*.jar'])
//Libs folder contains: org.apache.http.legacy.jar …Run Code Online (Sandbox Code Playgroud)