为什么"Unable to pre-dex - Error while signing the application"错误发生在Android Studio上?



Android Studio上签名和发布(构建/生成已签名的Apk...(程序时会显示此错误

  • 当我在没有签名的情况下运行程序时,我没有问题,它运行正常,但是如果我使用签名文件,我会遇到此错误。

Stacktrace ScrenShot 1

堆栈跟踪 ScrenShot 2

App build.gradle 代码:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.app"
        minSdkVersion 16
        targetSdkVersion 27
    }
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.google.firebase:firebase-crash:11.8.0'
    ...
    implementation 'com.path:android-priority-jobqueue:1.1.2'
    implementation 'com.birbit:android-priority-jobqueue:2.0.1'
    implementation 'com.android.volley:volley:1.1.0'
    ...
}
apply plugin: 'com.google.gms.google-services'

您的项目在包含依赖项库方面存在问题。

取代

编译 'com.path:android-priority-jobqueue:1.1.2'

compile ('com.path:android-priority-jobqueue:1.1.2'){
        exclude group: 'com.google.android'
    }

相关内容

最新更新