我在build.gradle(app)中使用以下庫,並且在libs文件夾中有一些庫,如:android-studio項目中的「Arcgis SDK和ksoap2和gcm.jar」 ,當我建立它時,會導致以下錯誤:一些android庫和谷歌播放服務之間的不兼容
錯誤:執行任務':app:dexDebug'失敗。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:進程'命令'C:\ Program Files \ Java \ jdk1.8.0_66 \ bin \ java.exe'零退出值1
這是的build.gradle(APP):
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.eywa.paltrack"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
}
當我除去(Arcgis的SDK)或(com.android.support:design)或(com.google.android .gms:play-services),當我刪除其中的一個時,項目會成功建立。我需要所有這些。你能幫我解決這個問題嗎?
arcgis SDK有多少方法? Google Play服務有56k以上的方法。這與65K的dex限制並不遙遠。此外,你有沒有更具體的錯誤? – Christopher
如何知道arcgis SDK有多少方法? –
我沒有任何更具體的錯誤,這個錯誤發生在編譯時, 如果你創建新的android項目,並使用所有這些庫發生錯誤, 我嘗試新項目。 –