Reputation: 3067
I have a Flutter app targeting Android SDK 34 with minimum SDK 28:
flutter.compileSdkVersion=34
flutter.minSdkVersion=28
flutter.targetSdkVersion=34
I've added below to my build.gradle
as per this
android {
buildToolsVersion "34.0.0"
...
}
Android SDK Build-tools
version 34 is installed, but when I uninstall version 30.0.3 using Android Studio SDK manager, Flutter installs it on the next build.
Checking the license for package Android SDK Build-Tools 30.0.3 in C:\Users\user\AppData\Local\Android\sdk\licenses License for package Android SDK Build-Tools 30.0.3 accepted. Preparing "Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)". "Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" ready. Installing Android SDK Build-Tools 30.0.3 in C:\Users\user\AppData\Local\Android\sdk\build-tools\30.0.3 "Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" complete. "Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" finished.
Why is Flutter installing old version of build tools and is it using the latest version of build tools as configured in Gradle?
Upvotes: 2
Views: 1364