ProcessException: Process \"C:\\Users\\User\\Desktop\\Courses\\flutter\\myapp\\android\\gradlew.bat\" exited abnormally:
Exception in thread \"main\" java.lang.Runti
defaultConfig {
// TODO: Specify your own unique Application ID
(https://developer.android.com/studio/build/application-id.html).
applicationId "com.match_hire"
minSdkVersion 16
targetSdkVersion 28
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
add multiDexEnabled true might work
The problem is with your gradle installation, for linux users:
.gradle
folder in your Home directorywrapper/dists
and you'd find all your gradle installationOpen gradlew.bat file in edit mode in the new window of android studio and resolve the gradle issue. I Just delete gradle-4.10.2-all and rebuild my project.
I solve this error with delete flutter sdk and download it again. Be sure that you have good internet.
Delete .gradle
the folder in C:\Users***.gradle
in Windows or /Users/xxxx/.gradle
in Mac , connect to the internet, rebuild project to download the latest Gradle.
This might help if you have license problem.
flutter doctor
on command prompt. If you get this:
! Some Android licenses not accepted.flutter doctor --android-licenses
and accept all the licenses.flutter run
and you are good to go.