一尘不染

ProcessException:进程“ C:\ .. \ myapp \ android \ gradlew.bat”异常退出:

flutter

ProcessException: Process "C:\Users\User\Desktop\Courses\flutter\myapp\android\gradlew.bat" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\User\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
    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)
  Command: C:\Users\User\Desktop\Courses\flutter\myapp\android\gradlew.bat -v

当我从vs代码运行flutter应用程序时,它显示此错误,这是什么问题?


阅读 226

收藏
2020-08-13

共1个答案

一尘不染

这是我解决该问题所遵循的步骤。

  1. 运行flutter run由你的操作系统的命令提示发出(不是由VS代码外壳)。

  2. 确保您的互联网连接良好。

2020-08-13