mergeExtDexDebug失败,类型定义多次错误

问题描述 投票:0回答:1

我已经经历了几个小时的错误。我将Java代码转换为kotlin并偶然发现了这一点。

Type {module}$someclass$1 is defined multiple types: 
...\app\build\intermediates\external_libs_dex_archive\debug\out\{file}.jar:classes.dex,
...\app\build\intermediates\external_libs_dex_archive\debug\out\{file}_0.jar:classes.dex

即使删除依赖关系也无法解决。它只是显示另一个模块。

Note:我启用了多dex。清理项目,重建项目或使重启无效都无法解决。

android gradle android-multidex android-r8
1个回答
0
投票

结果降级了gradle解决了这个问题。我在使用3.6.3,然后又回到3.6.2了。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.