标题: 生成DEX执行失败,刚重新安装的 [打印本页] 作者: z15864462006 时间: 2020-12-2 23:25 标题: 生成DEX执行失败,刚重新安装的 错误:
步骤"生成DEX文件"执行失败
Uncaught translation error:
java.lang.IllegalArgumentException: already added: Lcom/voldp/ctrl/BuildConfig;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:192)
at com.android.dx.command.dexer.Main.addClassToDex(Main.java:795)
at com.android.dx.command.dexer.Main.access$2800(Main.java:85)
at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1933)
at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1913)
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)
1 error; aborting
错误: 建立所指定的安卓APK输出文件"E:\app\zyapp\_int\zyapp\debug\linker\zyapp.apk"失败
--> 当前处理阶段: 生成DEX文件
[命令行]: "D:\Program Files (x86)\android_chs_free\plugins\vprj_android\sdk\java\bin\java.exe" -Xmx4096m -jar "D:\Program Files (x86)\android_chs_free\plugins\vprj_android\sdk\android\build-tools\29.0.2\lib\dx.jar" --debug --dex --output="E:\app\zhensheng\_int\zhensheng\debug\linker\temp\_temp_gen_\classes.dex" "E:\app\zhensheng\_int\zhensheng\debug\linker\temp\_temp_bin_" "libs"
[错误输出]:
Uncaught translation error:
java.lang.IllegalArgumentException: already added: Lcom/voldp/ctrl/BuildConfig;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:192)
at com.android.dx.command.dexer.Main.addClassToDex(Main.java:795)
at com.android.dx.command.dexer.Main.access$2800(Main.java:85)
at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1933)
at com.android.dx.command.dexer.Main$ClassDefItemConsumer.call(Main.java:1913)
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)
1 error; aborting