小迷球 2019-04-17 23:30 采纳率: 100%
浏览 375
已采纳

idea 写flutter app,重启电脑后项目便宜报错Error:Android Dex: [my_app] Unable to execute DX

当天晚上 项目编译运行正常,关机后,第二天打开项目编译失败,

Information:2019/4/17 22:49 - Compilation completed with 24 errors and 0 warnings in 4 s 598 ms
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/AbstractCommandLineConverter;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/AbstractPropertiesCommandLineConverter;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineArgumentException;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineConverter;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineOption;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineParser;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineParser$1;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineParser$AfterFirstSubCommand;
Error:Android Dex: [my_app] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/gradle/cli/CommandLineParser$AfterOptions;
Error:Android Dex: [my_app] Unable to execute DX
Error:Android Dex: [my_app] java.lang.RuntimeException: Translation has been interrupted
Error:Android Dex: [my_app] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:614)
Error:Android Dex: [my_app] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
Error:Android Dex: [my_app] at com.android.dx.command.dexer.Main.runDx(Main.java:288)
Error:Android Dex: [my_app] at com.android.dx.command.dexer.Main.run(Main.java:264)
Error:Android Dex: [my_app] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:Android Dex: [my_app] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Error:Android Dex: [my_app] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error:Android Dex: [my_app] at java.lang.reflect.Method.invoke(Method.java:498)
Error:Android Dex: [my_app] at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:201)
Error:Android Dex: [my_app] at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:349)
Error:Android Dex: [my_app] Caused by: java.lang.InterruptedException: Too many errors
Error:Android Dex: [my_app] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:606)
Error:Android Dex: [my_app] ... 9 more

图片说明
请教大神解决!!

  • 写回答

2条回答 默认 最新

  • zqbnqsdsmd 2019-04-19 08:41
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 qtcreat 使用msvc编译器开发软件运行时字体锯齿感严重
  • ¥15 c#直接使用C++ 写的class 后续
  • ¥15 为何显示keyerror fruit
  • ¥15 关于#stm32#的问题:/* User can add his own implementation to report the HAL error return state */
  • ¥15 imageware粗糙度表面
  • ¥15 python使用pulp线性优化时报错
  • ¥15 为什么我的uibot导入py模块出错呀。py文件放在了uibot里对应的python文件夹了,卸了重安也不行
  • ¥15 开源或低价数据中台哪个最好
  • ¥15 arduino编程出现字符串疑似覆盖现象
  • ¥15 我的b站在没有碰到屏幕的情况下偶尔会自动跳出进度条,就像在屏幕上点了一下一样,但我并没有点。而且视频进度并没有变。这可能是什么原因造成的?