0

I am getting this error after updating minSdkVersion according to this question's answer.

Here is the error.

(For some reason I can't post the raw error output.) Error

Here is my build.gradle:

    defaultConfig {
    
       applicationId "com.example.test_app"
    

       // modified this as per the solution
       minSdkVersion localProperties.getProperty(‘flutter.minSdkVersion’).toInteger()
       targetSdkVersion flutter.targetSdkVersion
       versionCode flutterVersionCode.toInteger()
       versionName flutterVersionName
    }

Here is my local.propertis

sdk.dir=C:\\Users\\userone\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1

// added this as per the solution
flutter.minSdkVersion=21
Shohidul Alam
  • 653
  • 1
  • 6
  • 19
  • Can you please tell what is the error, because in your logs above it just shows that an error has occured while building but it doesn't tell the error. – Just a Person Jul 18 '22 at 14:13
  • @JustaPerson Thanks. I didn't notice that. Please check now. – Shohidul Alam Jul 18 '22 at 15:33
  • In the image you have posted in that line, localProperties.getProperty('') It looks like you have used backticks ` instead of single quote ' and I think that's the reason why you can't post the logs on stack overflow. Or try to copy and paste the complete code from that answer to avoid any mistakes. – Just a Person Jul 18 '22 at 16:05
  • @JustaPerson new error occurs: Parameter format not correct - – Shohidul Alam Jul 18 '22 at 17:00
  • On which line does the error occur? Can you post the error message or post the screenshot if you can't get the error message posted here? – Just a Person Jul 19 '22 at 03:56

0 Answers0