错误:任务';的执行失败:应用程序:dexDebug';。过程';命令java.exe已完成,退出值为非零2
我知道这个问题已经被问过很多次了,但我仍然无法找到解决办法。我检查了每一个可能的复制库,但没有找到它。这是我的舱单错误:任务';的执行失败:应用程序:dexDebug';。过程';命令java.exe已完成,退出值为非零2,java,android,Java,Android,我知道这个问题已经被问过很多次了,但我仍然无法找到解决办法。我检查了每一个可能的复制库,但没有找到它。这是我的舱单 apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.dp.myquest" minSdkVersion 16 targetSd
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.dp.myquest"
minSdkVersion 16
targetSdkVersion 16
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile files('libs/abs.jar')
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/android-async-http-1.4.4.jar')
compile files('libs/android-query-full.0.26.7.jar')
compile files('libs/App42_ANDROID_SDK_3.0.1.jar')
compile files('libs/commons-collections4-4.0.jar')
compile files('libs/commons-net-3.3.jar')
compile files('libs/mail.jar')
compile files('libs/picasso-2.5.0.jar')
compile files('libs/universal-image-loader-1.9.3.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.facebook.android:facebook-android-sdk:3.19.0'
}
这与复制无关,问题是android在应用程序中对dex文件的方法限制为64k。 您需要启用多索引。 这就是你能做到的
您能添加错误的完整堆栈跟踪吗?我启用了它,但仍然是相同的错误。这段代码在eclipse中运行良好。