美文网首页
导入flutter项目Finished with error:

导入flutter项目Finished with error:

作者: Berlin麒麟 | 来源:发表于2019-11-09 12:19 被阅读0次

    错误描述

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

    解决办法

    错误原因是因为导入项目的gradle版本在本地没有

    修改flutter项目中android\gradle\wrapper\gradle-wrapper.properties文件中distributionUrl路径为你本地存在的版本

    或者下载该项目中需要的版本copy压缩包到C:\Users\**\.gradle\wrapper\dists\+对应版本文件下(无需解压)

    相关文章

      网友评论

          本文标题:导入flutter项目Finished with error:

          本文链接:https://www.haomeiwen.com/subject/sgpiwftx.html