Home > Software engineering >  i was just setting up flutter on vs code everything is fine but when i run the app this error appear
i was just setting up flutter on vs code everything is fine but when i run the app this error appear

Time:10-12

enter image description here

I'm using windows.

CodePudding user response:

The error message reads "Timeout [...] reached waiting for exclusiv access to file [...]\gradle-7.4-all.zip".

This indicates, the the vscode (or rather the currently running process in the terminal) cannot access the gradle file. Gradle on the other hand is required to build your application for Android. So - either gradle is not installed on your system or some other process is currently using it. Do you also have another IDE like AndroidStudio running by chance?

I would try the following steps:

  • Terminate all other programms and processes that you currently don't need.
  • If this does not work, restart your computer
  • If this does not work, reinstall gradle
  • Related