Repository navigation
Example apps are broken if they use the old version of settings.gradle #98048
Description
Activity
- addedplatform-androidAndroid applications specificallyAndroid applications specifically
on Feb 8, 2022 Migration tool will be able to handle this case.
Is this important enough to revert #97823 for now? It seems that it is more common for apps to use legacy settings.gradle than use iOS only plugins
Reacted by Taufik Nur Rahmandayes, let's revert it for now, and reland after the migration tool lands.
Reacted by Gary Qianthan use iOS only plugins
It's more of an edge case than that; it's using a plugin that doesn't support Android but has an android/ folder. (Most likely due to sloppy updating of a plugin that used to have a dummy Android implementation since that used to be required.)
- addedP2Important issues not at the top of the work listImportant issues not at the top of the work listand removed
on Feb 8, 2022 - addedtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.a: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesand removed
on Mar 11, 2023 The revert #98050 was landed. Is there still an open task that this issue is tracking?
(I see that when the revert landed, the issue was lowered in priority but kept open: #98048 (comment) )
It may have been intended to track getting to the point where we can reland that change, but since the original issue is still open I don't think we need it.
Reacted by Greg PriceThis 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.- locked as resolved and limited conversation to collaborators
on May 2, 2023 - added a commit that references this issue
on Dec 21, 2023 - added a commit that references this issue
on Dec 28, 2023
After #97823, some builds break if the app uses the older version of settings.gradle.
For example, webview_flutter_android:
This can be fixed by updating settings.gradle to the latest version:
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/templates/app_shared/android.tmpl/settings.gradle
cc @GaryQian for the migration tool
cc @stuartmorgan