You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flutter downloads (and uses?) old Android SDK build tools #41462
If only latest Android SDK build tools are installed (currently 29.0.2), Flutter will force the download of an old version (28.0.3) to run/build an app (both debug and release modes).
Steps to Reproduce
Remove all build tools versions
Install only latest build tools version (currently, 29.0.2)
flutter run
Flutter Doctor
[√] Flutter (Channel master, v1.10.7-pre.53, on Microsoft Windows [Versión 10.0.18362.356], locale es-ES)
• Flutter version 1.10.7-pre.53 at C:\src\flutter
• Framework revision f11c34109c (77 minutes ago), 2019-09-27 10:46:45 +0200
• Engine revision 18bc0b2596
• Dart version 2.6.0 (build 2.6.0-dev.3.0 403c4af720)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Cristian\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (1 available)
• Pixel 3 XL • 89PY09NNV • android-arm64 • Android 10 (API 29)
• No issues found!
Not really, just noticed it while freeing space on my computer, because as I specified SDK version 29, I expected Flutter to use it to build the app, but instead it redownloaded version 28. Now that version 29 is out and stable, I think Flutter should target it.
I have same problem. I only need build tools 29.0.2 instead of using 28.0.3
So, any update about this issue ? when the flutter team target this build tools to 29.0.2
This is not a very good thing. I use a machine with small but efficient ssd storage so I deleted old android platforms so save space. When I started building, flutter downloaded the platforms again...
Appear to have come across this problem as well. Had a plugin using Cirrus CI to build the example apps as part of the CI process I've setup. The apps and plugin have the compile and target SDK version set to 29. Builds end up failing (e.g. see https://github.com/MaikuB/flutter_appauth/pull/59/checks?check_run_id=303940871). Contacted Cirrus CI that then found this issue on GitHub
Gradle will download whatever build tools it requires - Flutter does not request these. I can't really provide any insight into why they are being downloaded, but it is possible some transitive dependency requires them for some reason.
@jonahwilliams is there any easy way to find out which plugins are targeting which sdk? I'd like to determine which plugin is forcing the download of the old android sdk as it's slowing down my CI build, and I may be able to bump that plugin version etc.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
escamoteur commentedon Sep 27, 2019
Is this a problem for you?
@jonahwilliams is there a reason for this?
Zazo032 commentedon Sep 27, 2019
Not really, just noticed it while freeing space on my computer, because as I specified SDK version 29, I expected Flutter to use it to build the app, but instead it redownloaded version 28. Now that version 29 is out and stable, I think Flutter should target it.
escamoteur commentedon Sep 27, 2019
Thanks for bringing this to our attention
budioktaviyan commentedon Oct 8, 2019
I have same problem. I only need build tools
29.0.2instead of using28.0.3So, any update about this issue ? when the flutter team target this build tools to
29.0.2escamoteur commentedon Oct 23, 2019
@jonahwilliams do you know anything about the plan on this?
solokingjec commentedon Oct 25, 2019
This is not a very good thing. I use a machine with small but efficient ssd storage so I deleted old android platforms so save space. When I started building, flutter downloaded the platforms again...
MaikuB commentedon Nov 27, 2019
Appear to have come across this problem as well. Had a plugin using Cirrus CI to build the example apps as part of the CI process I've setup. The apps and plugin have the compile and target SDK version set to 29. Builds end up failing (e.g. see https://github.com/MaikuB/flutter_appauth/pull/59/checks?check_run_id=303940871). Contacted Cirrus CI that then found this issue on GitHub
AttSee commentedon Dec 9, 2019
I have same problem.
vincentderidder commentedon Jan 19, 2020
Same issue here. Any news on this?
jonahwilliams commentedon Feb 4, 2020
Gradle will download whatever build tools it requires - Flutter does not request these. I can't really provide any insight into why they are being downloaded, but it is possible some transitive dependency requires them for some reason.
fkorotkov commentedon Feb 4, 2020
@joaoatgoogle might be because of
flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl
Line 25 in 4d404da
jonahwilliams commentedon Feb 4, 2020
Thats a template file though, it is only meant to be a default. If plugins are compiling against 28, you'll need to download that tool regardless
andy-g commentedon Mar 4, 2020
@jonahwilliams is there any easy way to find out which plugins are targeting which sdk? I'd like to determine which plugin is forcing the download of the old android sdk as it's slowing down my CI build, and I may be able to bump that plugin version etc.
SatyanarayanaGhadiyaram commentedon Mar 15, 2020
Installed the stable version of flutter today. I'm still facing this issue
lock commentedon Apr 4, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.bartekpacia commentedon Mar 30, 2024
For future readers: see my comment in a different issue