递归火山软件开发平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 火山 源码 类库
查看: 2845|回复: 2
打印 上一主题 下一主题

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

 关闭 [复制链接]

10

主题

42

帖子

324

积分

中级会员

Rank: 3Rank: 3

积分
324
跳转到指定楼层
楼主
发表于 2019-4-20 15:12:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
开始编译项目"程序崩溃管理":
正在连接生成安卓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 个错误.


回复

使用道具 举报

444

主题

1万

帖子

4万

积分

超级版主

Rank: 8Rank: 8

积分
40557
沙发
发表于 2019-4-21 19:49:48 | 只看该作者
例程没有问题的,应该是你火山历史遗留更新出的问题。。重新将火山全部删除卸载,重新下载安装。
安卓无障碍实战课:点击查看
交流群:641526939
回复

使用道具 举报

444

主题

1万

帖子

4万

积分

超级版主

Rank: 8Rank: 8

积分
40557
板凳
发表于 2019-4-21 19:50:18 | 只看该作者
本帖结贴,如有其他疑问请重新发帖提问
安卓无障碍实战课:点击查看
交流群:641526939
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|递归火山软件开发平台 ( 鄂ICP备18029190号 )

GMT+8, 2024-11-26 04:15 , Processed in 0.087396 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表