Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Android Unable to resolve class GradleException @ line 11, column 15

For some reason I'm getting a gradle error in my project. In the app level build.gradle I'm getting this error Unable to resolve class GradleException @ line 11, column 15. with the red squiggly underling 'GradleException' in this block:

if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
like image 433
Julia Pak Avatar asked Oct 11 '25 17:10

Julia Pak


1 Answers

if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

#remove the new keyword


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!