构建我们的应用程序代码时出现构建错误DexIndexOverflowException。关于构建错误:DexIndexOverflowException
似乎我们的应用程序或应用程序中包含的库中的一些代码正在调用Google Play服务中的功能,最高呼叫次数为65536次。
要进一步追踪,您可以告诉我们一种深入了解可能对上述错误负责的依赖关系的方法。
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//compile files('libs/commons-collections-3.2.1.jar')
compile(name: 'HERE-sdk', ext: 'aar')
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.google.android.gms:play-services-location:11.0.4'
compile 'com.bugfender.sdk:android:0.8.4'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.squareup.okhttp3:logging-interceptor:3.8.0'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.github.lzyzsd:circleprogress:1.2.1'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'
}
apply plugin: 'com.google.gms.google-services'
谢谢您的回答..是的,我们在应用启用multidex,也是我们正在调试代码也看看我们是否可以删除一些库.. – Relsell