5

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

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

查看全部
spping
小迷球
2019/04/17 23:30
  • android-studio
  • android
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复