合并dex档案时出错
我正在用Kotlin和Android Studio构建一个小型Android应用程序。 一切正常,但突然间(至少在我看来),我坚持
Error:Execution failed for task :bahndb:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'. > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\Dieter\AndroidStudioProjects\zuegliwidget\bahndb\build\intermediates\transforms\dexBuilder\androidTest\debug\13.jar,
等到47.jar时,我尝试运行一个Instrumented测试。 本地测试一切正常。 奇怪的是,甚至更早的工作之前结帐显示此行为(一些更新?我已经重新安装了Android Studio两次)
我已经阅读了关于这个主题的所有信息,没有任何帮助:
- 使用干净的构建(我每次都做)
- 使缓存无效(一遍又一遍)
- 增加了multiDex
- 尝试了不同的Kotlin插件
- 卸载3.1金丝雀5,安装稳定,重新安装金丝雀5
- Un /注释依赖项(此前已工作)运行Lint,但失败,错误
应用程序有2个子模块,bahndb和http。 这里是gradle文件,如果有关系的话
https://github.com/dmenne/zuegliwidget/blob/master/build.gradle
https://github.com/dmenne/zuegliwidget/blob/master/app/build.gradle
https://github.com/dmenne/zuegliwidget/blob/master/bahndb/build.gradle <<最可能有罪
https://github.com/dmenne/zuegliwidget/blob/master/http/build.gradle
有没有系统的方法来找出问题的根源
坦克来@CommonsWare的评论,我发现我有
implementation ('com.squareup.retrofit2:converter-simplexml:2.3.0'){ exclude group: 'xpp3', module: 'xpp3' exclude group: 'stax', module: 'stax-api' exclude group: 'stax', module: 'stax' }
在一个子模块中,却忘记了另一个模块中的排除部分。
- 未解决的参考匕首2 + kotlin + android gradle
- Kotlin Dagger2找不到符号ApplicationModule_ProvideApplicationFactory
- Gradle 3.0.0(在Android Studio 3.0中)重新排列任务序列(用Kotlin模块编译时)?
- Android Plugin 2.2.0-alpha1无法与Kotlin编译
- Android测试失败时,Gradle构建失败,“字符串索引超出范围”
- Android Studio构建失败,Kotlin
- MyObjectBox不是在kotlin(objectbox库)中生成的
- gradle无法编译google地方API
- Android Studio 3.0在重建之后重复压缩输入警告