ProcessException: Process \"C:\\Users\\User\\Desktop\\Courses\\flutter\\myapp\\android\\gradlew.bat\" exited abnormally:
Exception in thread \"main\" java.lang.Runti
For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.
Try downloading it and installing it manually.
GRADLE_HOME
to point to this location.GRADLE_HOME/bin
to your PATH
environment variable. 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.
ext.kotlin_version: '1.2.71' -> '1.3.50'
It started working fine.
Here are the steps that I followed to solve the problem.
run flutter run
on the command prompt given by your OS(not by the vs code shell).
make sure you have a good internet connection.