flutter Exception in thread "main" java.io.FileNotFoundException 异常

在使用vscode 调试flutter应用的时候报如下异常

Downloading http://story.test.com/gradle-4.10.2-all.zip

Exception in thread "main" java.io.FileNotFoundException: http://story.test.com/gradle-4.10.2-all.zip

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)

        at org.gradle.wrapper.Download.downloadInternal(Download.java:58)

        at org.gradle.wrapper.Download.download(Download.java:44)

        at org.gradle.wrapper.Install$1.call(Install.java:61)

        at org.gradle.wrapper.Install$1.call(Install.java:48)

        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)

        at org.gradle.wrapper.Install.createDist(Install.java:48)

        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)

        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

大致的原因应该是权限问题,(恶心的权限)

提权就可以了。嗯,使用git shell 完美运行

你可能感兴趣的:(flutter Exception in thread "main" java.io.FileNotFoundException 异常)