Flutter compileSdkVersion and targetSdkVersion on Android

I would like to know that if I want my app to support new Android phone which api level is 9.0(Pie), what value should I set for compileSdkVersion and targetSdkVersion on build.gradle. Does anyone know about this?

3 Answers

compileSdkVersion : version actually used to build the app

It's usually recommended to use the Flutter constant for the compileSdkVersion to always compile with the latest version of the SDK supported by Flutter : compileSdkVersion flutter.compileSdkVersion.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.