Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
warcayac opened this issue Aug 11, 2020 · 19 comments
Open

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

warcayac opened this issue Aug 11, 2020 · 19 comments
Labels
found in release: 3.19 Found to occur in 3.19 found in release: 3.22 Found to occur in 3.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on P3 Issues that are less important to the Flutter project platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team

Comments

@warcayac
Copy link

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

@markusaksli-nc
Copy link
Member

markusaksli-nc commented Aug 12, 2020

Reproducible on the latest master 1.21.0-8.0.pre.176.

flutter doctor -v
[√] Flutter (Channel master, 1.21.0-8.0.pre.176, on Microsoft Windows [Version 10.0.19041.388], locale en-US)
    • Flutter version 1.21.0-8.0.pre.176 at C:\Development\flutter_master
    • Framework revision d9637ed784 (3 hours ago), 2020-08-11 23:51:03 -0400
    • Engine revision 6381b1511b
    • Dart version 2.10.0 (build 2.10.0-11.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30320.27
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (4 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.388]
    • Web Server (web)  • web-server         • web-javascript • Flutter Tools
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 84.0.4147.105

• No issues found!

As the author said flutter will use any installed version of build tools and Android SDK when changing the compileSdkVersion. The issue only arises after adding a dependency to pubspec.yaml and running pub get.

Tested with fresh flutter create project with compile, min, and target SDK all set to 30 and building for API 30 emulator. SDK 28 was deleted at this point. Worked with no dependencies.

After adding webview_flutter: ^0.3.22+1 and pub get flutter would not build without installing SDK Platform 28 rev 6. If I tried to build with API 27 it would download both 27 and 28. Flutter also forces build tools 28.0.3 even though 30.0.1 is installed in all cases.

Could be that this behavior is intended but I can't find documentation for it anywhere.

@warcayac Please refrain from including images if at all possible. The logs and build.gradle changes can't be copied without manually transcribing them.

@markusaksli-nc markusaksli-nc added found in release: 1.21 Found to occur in 1.21 has reproducible steps The issue has been confirmed reproducible and is ready to work on platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels. labels Aug 12, 2020
@pcsosinski
Copy link

cc @GaryQian

@jonahwilliams jonahwilliams added this to Awaiting triage in Tools - Android review via automation Aug 18, 2020
@jeffque
Copy link
Contributor

jeffque commented Nov 10, 2020

It seems very similar to #41462

@fkorotkov
Copy link
Contributor

@jonahwilliams any updates on this? Some users of Flutter's Docker image are reporting this issue and I'm not sure if it makes sense to include the old SDKs since it grows the images size from 1Gb to 3Gb. See cirruslabs/docker-images-flutter#115

@MrR1pp3r
Copy link

MrR1pp3r commented Jan 16, 2021

its because of your package..
package also use sdk version to build...
so if creater use sdk 28 to build pub/Package that means you need to use that sdk too..

if creater use sdk 30.. then you need to use sdk 30 .. same.

@fkorotkov
Copy link
Contributor

Is there an easy way to figure out which packages brings the old sdk version?

@UltraBurstXD
Copy link

UltraBurstXD commented Jan 23, 2021

Is that the reason why Flutter is trying to use SDK Built Tools revision 2.8.0.3 instead of 30 in 1.25.5? Any workaround available? There is some kind of little problem with API levels below 30. So if something isn't done now, practically Flutter will be a toy soon.

@Marty
Copy link

Marty commented Feb 9, 2021

So basically, all the different SDK that were used to build all the libraries used in a project have to be present, am I right?
Is there a way to list which library needs which SDK?
This could grow to be a problem ...

@gaburielcasado
Copy link

Anyone was able to solve this?
When I try to build the project in a docker container, flutter tries to install build tools 29.0.2, even though I've already set that up.

@bartekpacia
Copy link
Member

This issue need more attention.

@teddy225

This comment was marked as abuse.

@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
@bartekpacia
Copy link
Member

bartekpacia commented Mar 30, 2024

I was recently annoyed again by this issue and decided to investigate a bit. Unfortunately it looks like no simple solution is available - you just have to not depend on plugins that want to be compiled against older Android SDK versions. In other words, if at least 1 Android plugin your Flutter app depends on has compileSdkVersion 28 in its build.gradle, then Android SDK Platform 28 will be installed1.

The only thing we can do is to politely ask authors of all plugins we use to target the latest stable Android SDK version (as of today (30/03/2024) this is 34).

The process of manually checking each plugin's build.gradle file is tedious, so I wrote a simple shell script that makes this fast&easy. For example for the following pubspec.yaml of a real medium-sized app:

pubspec.yaml
name: discover_rudy
description: Cross-platform app for tourists.
version: 1.0.0+1 # versionName and versionCode are set automatically by CI
publish_to: none

environment:
  sdk: ">=3.3.0 <4.0.0"
  flutter: 3.19.0

dependencies:
  animated_text_kit: ^4.2.2
  animations: ^2.0.11
  archive: ^3.4.10
  async: ^2.11.0
  bloc: ^8.1.4
  bloc_presentation: ^1.0.0
  cached_network_image: ^3.3.1
  cloud_firestore: ^4.15.9
  collection: ^1.18.0
  connectivity_plus: ^6.0.1
  crypto: ^3.0.3
  cupertino_icons: ^1.0.6
  equatable: ^2.0.5
  firebase_auth: ^4.17.9
  firebase_core: 2.27.1 # because of precompiled version in ios/Podfile
  firebase_crashlytics: ^3.4.19
  firebase_storage: ^11.6.10
  flutter:
    sdk: flutter
  flutter_bloc: ^8.1.5
  flutter_blurhash: ^0.8.2
  flutter_downloader: ^1.11.6
  flutter_hooks: ^0.20.5
  flutter_localizations:
    sdk: flutter
  flutter_markdown: ^0.6.22
  flutter_plugin_android_lifecycle: ^2.0.17
  flutter_svg: ^2.0.10+1
  freezed_annotation: ^2.4.1
  geolocator: ^11.0.0
  go_router: ^13.2.1
  google_maps_flutter: ^2.6.0
  google_nav_bar: ^5.0.6
  google_sign_in: ^6.2.1
  hexcolor: ^3.0.1
  http: ^1.2.1
  hydrated_bloc: ^9.1.5
  image_picker: ^1.0.7
  intl: ^0.18.1
  intro_slider: ^4.2.1
  json_annotation: ^4.8.1
  location: ^5.0.3
  logging: ^1.2.0
  package_info_plus: ^6.0.0
  path: ^1.9.0
  path_provider: ^2.1.2
  percent_indicator: ^4.2.3
  photo_view: ^0.14.0
  provider: ^6.1.2
  rxdart: ^0.27.7
  share_plus: ^8.0.2
  sign_in_with_apple: ^5.0.0
  url_launcher: ^6.2.5
  wave: ^0.2.2

dev_dependencies:
  bloc_test: ^9.1.7
  build_runner: ^2.4.8
  custom_lint: ^0.6.4
  flutter_gen_runner: ^5.4.0
  flutter_launcher_icons: ^0.13.1
  flutter_test:
    sdk: flutter
  freezed: ^2.4.7
  go_router_builder: ^2.4.1
  json_serializable: ^6.7.1
  leancode_lint: ^11.0.0
  mocktail: ^1.0.3

flutter_icons:
  android: false
  ios: true
  image_path: art/appicon.png

flutter:
  uses-material-design: true

  assets:
    - assets/
    - assets/images/
    - assets/map_styles/

flutter_native_splash:
  color: "#669900"
  image: art/appicon_transparent.png

flutter_gen:
  output: lib/resources

it prints:

$ flutter_android_plugins_sdk
cloud_firestore-4.15.9 wants to be compiled against compileSdk33
connectivity_plus-6.0.1 wants to be compiled against compileSdk34
firebase_auth-4.17.9 wants to be compiled against compileSdk33
firebase_core-2.27.1 wants to be compiled against compileSdk33
firebase_crashlytics-3.4.19 wants to be compiled against compileSdk33
firebase_storage-11.6.10 wants to be compiled against compileSdk33
flutter_downloader-1.11.6 wants to be compiled against compileSdk33
flutter_plugin_android_lifecycle-2.0.17 wants to be compiled against compileSdkVersion33
geolocator_android-4.5.4 wants to be compiled against compileSdk34
google_maps_flutter_android-2.7.0 wants to be compiled against compileSdk34
google_sign_in_android-6.1.22 wants to be compiled against compileSdk34
image_picker_android-0.8.9+3 wants to be compiled against compileSdkVersion33
location-5.0.3 wants to be compiled against compileSdk33
package_info_plus-6.0.0 wants to be compiled against compileSdk34
path_provider_android-2.2.2 wants to be compiled against compileSdkVersion33
share_plus-8.0.2 wants to be compiled against compileSdk34
sign_in_with_apple-5.0.0 wants to be compiled against compileSdkVersion28
sqflite-2.3.2 wants to be compiled against compileSdkVersion33
url_launcher_android-6.3.0 wants to be compiled against compileSdk34
$ flutter_android_plugins_sdk | rev | cut -d ' ' -f 1 | rev | sort | uniq -c
   7 compileSdk33
   7 compileSdk34
   1 compileSdkVersion28
   4 compileSdkVersion33

Here is the script's source code. If you're on macOS, just brew install bartekpacia/tools/scripts and you're good to go.

I hope this is useful ✌🏻 cheers


Footnotes

  1. To learn a bit more about what "platforms" are, check out this blogpost of mine.

@stuartmorgan
Copy link
Contributor

The only thing we can do is to politely ask authors of all plugins we use to target the latest stable Android SDK version (as of today (30/03/2024) this is 34).

There's an interesting question here of what, if anything, we should do in the tool here. We could certainly raise awareness of this by warning when packages are using older versions of the compile SDK than the app is (as we currently do if they use a newer version), but that would be a very noisy warning for something that isn't directly actionable by the app developer, and is mostly harmless.

Maybe we could put something in the just the plugin's example app template that would warn if the compile SDK for the plugin is less than the current Flutter-tool-recommended SDK. It wouldn't hurt, but I'm skeptical it would be seen much by plugin devs.

@kuhnroyal
Copy link

I have something like this in my build.gradle files which seems to avoid the problem.

subprojects {
    afterEvaluate {
        if (it.hasProperty('android')) {
            android {
                compileSdkVersion android_version
            }
        }
    }
}

@bartekpacia
Copy link
Member

@kuhnroyal This is great!

I think this may hide possible problems with a plugin that needs to be updated to work well with higher compileSdk, but I guesstimate it's a rare situation.

@kuhnroyal
Copy link

Could probably compare it before setting it and emit a warning.

@danagbemava-nc danagbemava-nc changed the title Flutter tries to "Install Android SDK Build-Tools 28.0.3 and Platform 28" to build APK Flutter tries to Install old android build tools to build APK Apr 16, 2024
@danagbemava-nc danagbemava-nc changed the title Flutter tries to Install old android build tools to build APK Flutter tries to install old android build tools to build APK Apr 16, 2024
@danagbemava-nc danagbemava-nc changed the title Flutter tries to install old android build tools to build APK Flutter tries to install old android build tools/platforms to build APK Apr 16, 2024
@danagbemava-nc
Copy link
Member

Reproducible on the latest versions on flutter.

Steps to reproduce

  • run flutter create example
  • add a plugin with an old compileSdk (I used flutter_image_compress)
  • set the compileSdk & targetSdkVersion to the latest (currently 34)
  • run the app on android

Additional/optional steps

  • Delete the older platforms/tools that the plugin uses (if you already have it installed) This should be done before running the app.

logs

Launching lib/main.dart on Pixel 7 in debug mode...
Checking the license for package Android SDK Build-Tools 30.0.3 in /Users/nexus/Library/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 /Users/nexus/Library/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.
Checking the license for package Android SDK Platform 31 in /Users/nexus/Library/Android/sdk/licenses
License for package Android SDK Platform 31 accepted.
Preparing "Install Android SDK Platform 31 (revision: 1)".
"Install Android SDK Platform 31 (revision: 1)" ready.
Installing Android SDK Platform 31 in /Users/nexus/Library/Android/sdk/platforms/android-31
"Install Android SDK Platform 31 (revision: 1)" complete.
"Install Android SDK Platform 31 (revision: 1)" finished.
flutter doctor -v
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
    • Flutter version 3.19.5 on channel stable at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (3 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (5 available)
    • Pixel 7 (mobile)     • adb-28291FDH2001SA-5Lv71w._adb-tls-connect._tcp. • android-arm64  • Android 14 (API 34)
    • Nexus (mobile)       • 00008020-001875E83A38002E                        • ios            • iOS 17.4.1 21E236
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E                        • ios            • iOS 17.4.1 21E236
    • macOS (desktop)      • macos                                            • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)         • chrome                                           • web-javascript • Google Chrome 123.0.6312.124

[✓] Network resources
    • All expected network resources are available.

• No issues found!
[!] Flutter (Channel master, 3.22.0-11.0.pre.15, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
    • Flutter version 3.22.0-11.0.pre.15 on channel master at /Users/nexus/dev/sdks/flutters
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 08bae320c5 (7 hours ago), 2024-04-16 00:06:18 -0400
    • Engine revision 66ad802178
    • Dart version 3.5.0 (build 3.5.0-61.0.dev)
    • DevTools version 2.35.0-dev.8
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (6 available)
    • Pixel 7 (mobile)                • adb-28291FDH2001SA-5Lv71w._adb-tls-connect._tcp. • android-arm64  • Android 14 (API 34)
    • Nexus (mobile)                  • 00008020-001875E83A38002E                        • ios            • iOS 17.4.1 21E236
    • Dean’s iPad (mobile)            • 00008103-000825C811E3401E                        • ios            • iOS 17.4.1 21E236
    • macOS (desktop)                 • macos                                            • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                            • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                                           • web-javascript • Google Chrome 123.0.6312.124

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

@danagbemava-nc danagbemava-nc added found in release: 3.19 Found to occur in 3.19 found in release: 3.22 Found to occur in 3.22 and removed found in release: 1.21 Found to occur in 1.21 labels Apr 16, 2024
@bartekpacia
Copy link
Member

bartekpacia commented Apr 27, 2024

I have something like this in my build.gradle files which seems to avoid the problem.

subprojects {
    afterEvaluate {
        android {
            compileSdkVersion 34
        }
    }
}

FYI @kuhnroyal, for me this fails with Cannot run Project.afterEvaluate(Closure) when the project is already evaluated:

Logs
$ ./gradlew

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/bartek/projects/discover_rudy/android/build.gradle' line: 16

* What went wrong:
A problem occurred evaluating root project 'android'.
> Cannot run Project.afterEvaluate(Closure) when the project is already evaluated.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Build file '/Users/bartek/projects/discover_rudy/android/build.gradle' line: 16

* What went wrong:
A problem occurred evaluating root project 'android'.
> Cannot run Project.afterEvaluate(Closure) when the project is already evaluated.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 616ms
4 actionable tasks: 4 up-to-date

I'm using AGP 8.2.0, Gradle 8.7, and Flutter 3.19.0.

EDIT

Fixed by doing this in build.gradle:

rootProject.buildDir = "../build"
subprojects {
    afterEvaluate {
        android {
            compileSdkVersion 34
        }
    }

    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

@kuhnroyal
Copy link

@bartekpacia I might have removed too much before posting :) I have similar handling there for missing namespaces etc. as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found in release: 3.19 Found to occur in 3.19 found in release: 3.22 Found to occur in 3.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on P3 Issues that are less important to the Flutter project platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team
Projects
Tools - Android review
  
Awaiting triage
Development

No branches or pull requests