Skip to content

Flutter downloads (and uses?) old Android SDK build tools #41462

@Zazo032

Description

@Zazo032

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).

Screenshot

Steps to Reproduce

  1. Remove all build tools versions
  2. Install only latest build tools version (currently, 29.0.2)
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: buildBuilding flutter applications with the toolplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions