
Relands https://github.com/flutter/flutter/pull/146181. Just 3 commits: 1. a revert of the revert 2. the fix described in https://github.com/flutter/flutter/pull/146181#issuecomment-2038238869 3. updating two postsubmit tests from Java 11 to 17, as that is required for this new AGP version. I've verified that `flutter build apk --flavor paid --debug` fails in `dev/integration_tests/flavors/` with the error in ci without (2), and succeeds with it. I've also verified that the `dev/benchmarks/complex_layout` app builds successfully with Java 17. That covers all the postsubmits that failed according [to the dashboard](https://flutter-dashboard.appspot.com/#/build).
Deprecated settings.gradle
This project is meant to test that apps using the deprecated
android/settings.gradle
(PluginEach used until Flutter v1.22.0) can still be built.
This project can be removed once apps have been migrated to this new file.