美文网首页
Program type already present: co

Program type already present: co

作者: 大胡子的机器人 | 来源:发表于2018-12-13 16:43 被阅读0次

    通过运行命令查看到:gradlew build --stacktrace 查看编译日志:

    Caused by: com.android.tools.r8.errors.CompilationError: Program type already present: com.al.a
    at com.android.tools.r8.utils.ProgramClassCollection.resolveClassConflictImpl(ProgramClassCollection.java:64)
    at com.android.tools.r8.utils.ProgramClassCollection.lambdacreate0(ProgramClassCollection.java:25)
    at com.android.tools.r8.utils.ProgramClassCollection.create(ProgramClassCollection.java:24)
    at com.android.tools.r8.graph.LazyLoadedDexApplication$Builder.build(LazyLoadedDexApplication.java:124)
    at com.android.tools.r8.dex.ApplicationReader.read(ApplicationReader.java:123)
    at com.android.tools.r8.dex.ApplicationReader.read(ApplicationReader.java:86)
    at com.android.tools.r8.GenerateMainDexList.run(GenerateMainDexList.java:40)
    at com.android.tools.r8.GenerateMainDexList.run(GenerateMainDexList.java:110)
    at com.android.builder.multidex.D8MainDexList.generate(D8MainDexList.java:83)
    ... 46 more

    原因:app本身已经集成了高德的sdk,后来去集成讯飞的AIUI sdk,一直编译报错。com.al.a本身就是高德的sdk混淆后的代码。

    解决办法:

    把引入的高德的sdk包去掉即可。

    参考其他的解决办法:
    https://blog.csdn.net/haoyuegongzi/article/details/81627520
    https://blog.csdn.net/qq_35956194/article/details/84918256

    相关文章

      网友评论

          本文标题:Program type already present: co

          本文链接:https://www.haomeiwen.com/subject/jzjbhqtx.html