How to resolve java.util.zip.ZipException?

后端 未结 11 1192
执念已碎
执念已碎 2020-11-27 05:37

Whever I try to debug and deploy my android application (in Android Studio 0.9) I get the following error:

Execution failed for task \':app:packageAllDebugCl         


        
11条回答
  •  面向向阳花
    2020-11-27 06:00

    To diagnose and fix this problem, run this gradle command:

    ./gradlew clean app:dependencies
    

    this will list all of the dependencies in your app in a tree. Search the results for the offending duplicate class and add

    compile('naughty.library') {
        exclude group: 'foo', module: 'bar'
    }
    

    to remove the duplicate.

提交回复
热议问题