flutterdle icon indicating copy to clipboard operation
flutterdle copied to clipboard

Compilation error cannot invoke method toInteger on null object

Open cryptax opened this issue 3 years ago • 0 comments

The project wouldn't compile in my case. I was getting the error " Cannot invoke method toInteger() on null object" on the minSdkVersion line of app/build.gradle. I had to do the following quick fix:

    defaultConfig {
         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
         applicationId "com.johnnysbug.flutterdle"
-        minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
+        minSdkVersion 16
         targetSdkVersion flutter.targetSdkVersion
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName

cryptax avatar Oct 07 '22 10:10 cryptax