Android apk build错误

时间:2017-10-02 14:16:40

标签: android android-multidex

请帮我解决以下问题。

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [C:\...\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\...\app\build\intermediates\transforms\desugar\debug\69.jar] (Duplicate zip entry [69.jar:org/intellij/lang/annotations/Flow.class]))

我只依赖于一些Play服务库,如下所示:

// Play services
compile "com.google.android.gms:play-services-maps:${rootProject.ext.playServicesVersion}"
compile "com.google.android.gms:play-services-places:${rootProject.ext.playServicesVersion}"
//Firebase
compile "com.google.firebase:firebase-messaging:${rootProject.ext.playServicesVersion}"

1 个答案:

答案 0 :(得分:1)

我与注释库发生了kotlin冲突。用com.google.support.annotations替换它对我来说是个窍门。