flutter/packages/flutter_tools/test/general.shard/android
Camille Simon 87392c214b
[Android] Catch and rethrow Java/Gradle incompatibility error (#124084)
Catches and re-throws Gradle error indicating that the Gradle version is
incompatible with the Java version that Flutter is using to tell users
how to fix the issue.

Related issue: https://github.com/flutter/flutter/issues/122376

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] All existing and new tests are passing.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat

---------

Co-authored-by: Reid Baker <hamilton.reid.baker@gmail.com>
Co-authored-by: Christopher Fujino <fujino@google.com>
Co-authored-by: Christopher Fujino <christopherfujino@gmail.com>
2023-04-05 14:39:55 -07:00
..
adb_log_reader_test.dart Ignore spam from SurfaceSyncer (#123262) 2023-03-23 21:55:39 +00:00
android_device_discovery_test.dart Separate attached and wireless devices (#122615) 2023-03-15 16:35:05 +00:00
android_device_port_forwarder_test.dart add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
android_device_start_test.dart Revert "[flutter_tools] Remove sound null safety flag (#123031)" (#123280) 2023-03-22 22:53:49 +00:00
android_device_test.dart Make AndroidApk nullable in stopApp. (#113353) 2022-10-13 17:03:57 +00:00
android_emulator_test.dart add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
android_gradle_builder_test.dart [flutter_tools] Add namespace getter in Android project; use namespace as fallback (#121416) 2023-03-09 22:19:04 +00:00
android_install_test.dart [tool] Install the corresponding APK in flutter run (#113622) 2022-10-19 02:44:30 +00:00
android_project_migration_test.dart Fix Gradle warning in a freshly flutter createed Android project (#122290) 2023-03-21 23:41:49 +00:00
android_sdk_test.dart Normalize Java SDK (JDK) location logic across the tool (#124233) 2023-04-05 20:36:50 +00:00
android_studio_test.dart Revert "Revert "Fix unable to find bundled Java version (#119244)" (#119981)" (#120107) 2023-02-07 21:42:20 +00:00
android_studio_validator_test.dart Use hasNoRemainingExpectations matcher for fake process manager in tool tests (#108649) 2022-07-30 02:02:05 +00:00
android_workflow_test.dart Add Java-Gradle-AGP validation to flutter analyze (#123916) 2023-04-05 14:36:05 -04:00
build_validation_test.dart Migrate more tool unit tests to null safety (#80002) 2021-04-08 15:18:52 -07:00
deferred_components_gen_snapshot_validator_test.dart Revert "Speed up first asset load by encoding asset manifest in binary rather than JSON (#113637)" (#116662) 2022-12-07 17:29:05 +00:00
deferred_components_prebuild_validator_test.dart Fix typos (#121171) 2023-02-23 19:43:21 +00:00
gradle_errors_test.dart [Android] Catch and rethrow Java/Gradle incompatibility error (#124084) 2023-04-05 14:39:55 -07:00
gradle_find_bundle_test.dart Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" #108472 (#108510) 2022-07-28 19:38:07 -07:00
gradle_test.dart Add Java-Gradle-AGP validation to flutter analyze (#123916) 2023-04-05 14:36:05 -04:00
gradle_utils_test.dart Add Java-Gradle-AGP validation to flutter analyze (#123916) 2023-04-05 14:36:05 -04:00
multidex_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
template_test.dart Adding 'is' to list of kotlin reserved keywords (#116299) 2023-01-06 00:10:07 +00:00