极速网络科技 发表于 2024-5-22 14:14:04

友盟统计类调试编译报错

本帖最后由 极速网络科技 于 2024-5-22 14:15 编辑

用友盟统计类之前调试编译正常没报错。
使用了友盟统计类之后调试编译就会报错。
调试编译例子不会报错。
我还尝试将源码路径里的“_int”删掉,库已经更新到了4.28的版本。

一下是报错代码:
正在进行"编译Java源文件"工作,请稍候...
正在进行"生成DEX文件"工作,请稍候...
错误:
    步骤"生成DEX文件"执行失败
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/cconfig/R) does not match path (cOM/umeng/cconfig/R.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/cconfig/R.class
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/cconfig/R$_RM) does not match path (cOM/umeng/cconfig/R$_RM.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/cconfig/R$_RM.class
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/cconfig/R$string) does not match path (cOM/umeng/cconfig/R$string.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/cconfig/R$string.class
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/umzid/R) does not match path (cOM/umeng/umzid/R.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/umzid/R.class
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/umzid/R$_RM) does not match path (cOM/umeng/umzid/R$_RM.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/umzid/R$_RM.class
    PARSE ERROR:
    com.android.dx.cf.iface.ParseException: class name (com/umeng/umzid/R$string) does not match path (cOM/umeng/umzid/R$string.class)
   at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:557)
   at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:434)
   at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:416)
   at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:256)
   at com.android.dx.command.dexer.Main.parseClass(Main.java:773)
   at com.android.dx.command.dexer.Main.access$1600(Main.java:85)
   at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1766)
   at com.android.dx.command.dexer.Main.processClass(Main.java:756)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:724)
   at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
   at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1719)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:157)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:143)
   at com.android.dx.command.dexer.Main.processOne(Main.java:678)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
   at com.android.dx.command.dexer.Main.runDx(Main.java:288)
   at com.android.dx.command.dexer.Main.main(Main.java:244)
   at com.android.dx.command.Main.main(Main.java:95)
    ...while parsing cOM/umeng/umzid/R$string.class
    6 errors; aborting
错误: 建立所指定的安卓APK输出文件"D:\Users\Administrator\Desktop\设备记录\_int\qrcode_test\debug\linker\qrcode_test.apk"失败
--- 项目"设备记录"编译或链接失败. 编译过程中共遇到了 1 个警告, 2 个错误.


创世魂 发表于 2024-5-22 15:34:36


开启这个试试


极速网络科技 发表于 2024-5-22 15:47:00

创世魂 发表于 2024-5-22 15:34
开启这个试试

感谢,开启后好了
页: [1]
查看完整版本: 友盟统计类调试编译报错