flutter吧 关注:1,330贴子:2,850
  • 0回复贴,共1

大佬们,初用flutter,遇到这个问题如何解决?

只看楼主收藏回复

使用flutter build apk 打包APK,得到一下错误信息,如何解决?
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "path" is null
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Error: Gradle task assembleDebug failed with exit code 1


IP属地:广东1楼2024-03-29 16:13回复