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
When i run my flutter app from vs code it shows this error, what is wrong here?
I solve this error with delete flutter sdk and download it again. Be sure that you have good internet.
I have solved this issue by setup android project in android studio and android studio shows me error that your kotlin version is not compatible so i upgrade kotlin version.
It started working fine.
The problem is with your gradle installation, for linux users:
.gradle
folder in your Home directorywrapper/dists
and you'd find all your gradle installation