flutteractionsbot e466195f42
[CP-beta]Update Android plugin templates for newer AGP (#157100)
This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

### Issue Link:
Part of https://github.com/flutter/flutter/issues/156111

### Changelog Description:
Updates the Android plugin templates to use newer configurations that have better compatibility with recent versions of AGP.

### Impact Description:
Without this, plugins created by `flutter create` will have deprecation warnings out of the box for developers whose projects use new versions of AGP, and will eventually fail to compile without manual updates.

### Workaround:
Manually change the Java version after running `flutter create`

### Risk:
What is the risk level of this cherry-pick?

### Test Coverage:
Are you confident that your fix is well-tested by automated tests?

### Validation Steps:
1. `flutter create -t plugin some_plugin --platforms=android`
2. Update the example project to the latest version of AGP
3. Build

There should not be warnings about `source value 8 is obsolete` or `target value 8 is obsolete`.
2024-11-13 01:01:21 +00:00
..