老师项目部署到虚拟机可以运行但是真机上运行就报错

来源:6-14 模块路由-ARouter集成

pangbo

2018-02-23

老师真机上不能运行报错

Error:Error converting bytecode to dex:

Cause: com.android.dex.DexException: Multiple dex files define Lcom/alibaba/android/arouter/routes/ARouter$$Group$$messageCenter;

Error:Execution failed for task ':App:transformClassesWithDexForDebug'.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments 


写回答

2回答

雷宇

2018-02-23

从这个Log来看,有可能是升级AS时,打包出现的一个问题。

在RouterPath中,有两个messageCenter的group,修改其中一个为其它名称。
如下图:

//img.mukewang.com/szimg/5a8feec70001794715120312.jpg

1
1
pangbo
老师果然是这个问题现已搞定,崇拜您老师!
2018-02-23
共1条回复

慕村6103718

2018-02-23

重新配置试试

0
0

Kotlin打造完整电商APP 模块化+MVP+主流框架

全网稀缺Kotlin项目实战,打造新一代Android工程师的核心竞争力

694 学习 · 209 问题

查看课程