haoajc 发表于 2019-4-20 15:12:57

程序崩溃管理例子编译时直接崩溃,这个不是vip吧

开始编译项目"程序崩溃管理":
正在连接生成安卓APK输出文件"C:\Program Files\voldev\samples\_int\custom_crash_test\debug\linker\custom_crash_test.apk"
当前程序编译时所需求安卓SDK API版本: 17, 实际所使用版本: 17;运行时所需求API版本: 17
当前程序所需求Java SDK版本: 1.6;实际所使用版本: 1.8
正在进行"生成DEX文件"工作,请稍候...
错误:
    步骤"生成DEX文件"执行失败
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ColorRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/DimenRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    Uncaught translation error:
    java.lang.IllegalArgumentException: already added: Landroid/support/annotation/DrawableRes;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:162)
   at com.android.dx.command.dexer.Main.addClassToDex(Main.java:796)
   at com.android.dx.command.dexer.Main.access$2800(Main.java:86)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1912)
   at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1892)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.RuntimeException: Translation has been interrupted
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
   at com.android.dx.command.dexer.Main.runDx(Main.java:291)
   at com.android.dx.command.dexer.Main.main(Main.java:247)
   at com.android.dx.command.Main.main(Main.java:94)
    Caused by: java.lang.InterruptedException: Too many errors
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
   ... 4 more
错误: 建立所指定的安卓APK输出文件"C:\Program Files\voldev\samples\_int\custom_crash_test\debug\linker\custom_crash_test.apk"失败
--- 项目"程序崩溃管理"编译或连接失败. 编译过程中共遇到了 0 个警告, 2 个错误.


创世魂 发表于 2019-4-21 19:49:48

例程没有问题的,应该是你火山历史遗留更新出的问题。。重新将火山全部删除卸载,重新下载安装。

创世魂 发表于 2019-4-21 19:50:18

本帖结贴,如有其他疑问请重新发帖提问
页: [1]
查看完整版本: 程序崩溃管理例子编译时直接崩溃,这个不是vip吧