I have installed the latest flutter. Create a project using
flutter create --org test test
However it was created using SDK version 29 (default). I believe this is the Android API level
But I need to install my APK in Android 7 (which is API level 24). So I changed the following:
build.gradle
compileSdkVersion 24
targetSdkVersion 24
But it failed to build. The error message is:
- What went wrong: Execution failed for task ':app:processDebugResources'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed C:\Users\User\.gradle\caches\transforms-2\files-2.1\a528b13ac93e64cafa3d0480e2c93207\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontStyle not found.
This app isn't compatible with your phone- s kbuild\app\outputs\apk\debug\app-debug.apk- s k