Finished with error: ProcessException: Process "D:\FlutterAPP\\gradlew.bat" exited abnormally

Android中在使用Flutter的使用报了一个错误

Finished with error: ProcessException: Process "D:\FlutterAPP\flutter_apptwo\android\gradlew.bat" exited abnormally:

 

Finished with error: ProcessException: Process "D:\FlutterAPP\flutter_apptwo\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: D:\FlutterAPP\flutter_apptwo\android\gradlew.bat -v

如下图

Finished with error: ProcessException: Process

 

查了很多都是要添加镜像啥的,试了不好使,后来明白了记录一下

将项目中 gradle-4.10.2-all.zip如图

Finished with error: ProcessException: Process

修改为你的

Finished with error: ProcessException: Process

运行OK

你可能感兴趣的:(报错)