我正在尝试在模拟器中运行Flutter的示例应用程序。然而,当我尝试运行(通过Android Studio或命令行)时,我收到以下异常:
Finished with error: ProcessException: Process
"C:\android_projects\flutter_app\android\gradlew.bat" exited abnormally:
Exception in thread "main" java.lang.NullPointerException
at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:34)
at
org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: C:\android_projects\flutter_app\android\gradlew.bat -v
当我运行flutter doctor命令时,一切都很好,我也接受了所有许可证。
欢迎提供任何帮助!