Skip to content

Flutter tries to install old android build tools/platforms to build APK #63533

@warcayac

Description

@warcayac

Steps to Reproduce

  1. Running flutter create xelophone_flutter:
    01 Create
    02 Create
  2. Files modified:
    03 modified
    Properties: CompileSdkVersion and buildToolsVersion
    04 modified
    Properties: DistributionUrl
  3. Reproduce the problem
  • When running for first time and while no packages are added to app, this app is running as expected (that is, it uses packages API 29 installed in system to build APK)
  • If one package is added and repository is updated (flutter pub get), then when trying to run app, it tries to install packages API 28 to build APK

Expected results:
05 Expected
Actual results:
06 Actual

Logs 1. Running... *OK*

10 Run ok
11 Run ok
12 Run ok
13 Run ok
14 Run ok
15 Run ok

  1. Running... Wrong

16 Run bad
17 Run bad
18 Run bad

  1. Flutter Analyze

19 Analyze

  1. Flutter Doctor
    08 Doctor

  2. SDK Manager
    07 sdk manager

  3. Gradle
    09 Gradle

  4. System
    20 System

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfound in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions