当我使用这 3 个 jar 文件时,我的应用程序在编译时显示错误:
Activation.jar mail.jar additionalnal.jar
我需要这些 jar 文件来发送电子邮件而无需用户干预。
我收到以下错误:
UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' 完成非零退出值 2当我在我的应用程序中使用 AppCombat Activity 时,我不能将 multidex 启用为 true 并在我的主文件中扩展 MultiDexActivity。
我的 Gradle 文件如下所示:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-*.jar') compile fileTree(dir: 'libs', include: 'ParseCrashReporting-*.jar') compile fileTree(dir: 'libs', include: 'additionnal.jar') compile fileTree(dir: 'libs', include: 'mail.jar') compile fileTree(dir: 'libs', include: 'activation.jar') compile 'com.github.traex.rippleeffect:library:1.3' compile 'com.facebook.android:facebook-android-sdk:4.1.0' compile 'com.google.android.gms:play-services:7.5.0' compile 'com.jpardogo.materialtabstrip:library:1.1.0' compile 'com.android.support:recyclerview-v7:21.+' compile 'com.android.support:cardview-v7:21.+' compile 'com.pkmmte.view:circularimageview:1.1' compile "com.android.support:support-v4:+" compile 'com.squareup.picasso:picasso:2.3.2' compile 'com.nineoldandroids:library:2.4.0' compile 'com.daimajia.slider:library:1.1.5@aar' compile 'com.getbase:floatingactionbutton:1.10.0' compile 'com.github.navasmdc:MaterialDesign:1.5@aar' compile 'com.github.PhilJay:MPAndroidChart:v2.1.3' }
问问题
226 次