spping
小迷球
采纳率100%
2019-04-17 23:30 阅读 361

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

5

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

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 zqbnqsdsmd 2019-04-19 08:41
  • spping 小迷球 2019-04-21 23:01

    更新 fluttertoast: ^3.0.4
    更新了Android studio最新版本,就好了。

    点赞 评论 复制链接分享

相关推荐