如何在Android Studio中的Flutter中修复java.lang.ExceptionInInitializerError(无错误消息)?

时间:2019-04-16 19:20:53

标签: android gradle dart flutter

我正在尝试运行Flutter Demo应用,但我收到此消息:


FAILURE: Build failed with an exception.

* What went wrong:
java.lang.ExceptionInInitializerError (no error message)

java.lang.ExceptionInInitializerError,并且编译失败。

我尝试按照另一个堆栈溢出答案删除.gradle文件夹,但在文件列表中找不到该文件。

这是错误消息:

C:\Programming\flutterTest\myapp>flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                                 |
Oops; flutter has exited unexpectedly.                                                           Sending crash report to Google.
Crash report sent (report ID: 8052264d7c52a914)
Initializing gradle...                                                  
Crash report written to C:\Programming\flutterTest\myapp\flutter_01.log;
please let us know at https://github.com/flutter/flutter/issues.

和我的flutter_01.log位于: https://pastebin.com/PS4dqe11

我认为这与gradle有关。 感谢您的帮助。

0 个答案:

没有答案