Muhammad Junaid Khalid
Muhammad Junaid Khalid

Reputation: 1206

Upgrading flutter android build tools

Flutter is building apk on android API level 29 by default I want to upgrade it to 30 how can I? I am new to flutter I don't know, I tried to google it but it wasn't helpful

Upvotes: 0

Views: 1114

Answers (1)

gtxtreme
gtxtreme

Reputation: 3616

Open a Flutter project in Android Studio and you have to edit the build.gradle file. In a flutter project, it is found at the path ./android/app/build.gradle

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.projectname"
    minSdkVersion 19
    targetSdkVersion 28 // Set this to 30
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Inspiration from this answer and modified accordingly

Upvotes: 4

Related Questions