-
Notifications
You must be signed in to change notification settings - Fork 28.5k
☂️ Gradle 8.7, AGP 8.4, Java 21, support #146660
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
Comments
Out of curiostiy: any reason for Gradle 8.4 specifically? Latest is 8.7. |
I think in practice this will be Gradle 8.6+, as it seems like AGP 8.4 requires that |
@bartekpacia just a typo, title and body updated. |
I think you meant Gradle 8.7, not AGP 8.7 ;-) I changed it again. |
This issue is assigned to @gmackall but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
Still working on tasks related to this, ex flutter/packages#7432 |
Upgrades all AGP versions less than 8 to latest. The primary motivation is to prepare for flutter/flutter#136879 (comment), which requires that plugins use a non-7.3 version. We believe it only affects version 7.3 - I'm going to test this, but am not sure the exact range yet and updating is independently valuable, so I just updated all pre 8 versions (it doesn't affect 8+). Also: - Upgrades Gradle versions as required - Marks the use of `Camera2Interop` with `@OptIn`, as it is required by the newer AGP version. - Changes the Camerax example java directory path to align with the package xml attribute/AGP namespace attribute. - Sets `android.buildFeatures.buildConfig` to true for compatibility with AGP 8.0+ in some places. - Sets `exported=true` in a manifest, requires for AGP bump. - Updates espresso in some examples, required by the AGP bump (0.2.0 isn't compatible with AGP 8.0+). Also related to flutter/flutter#146660
This issue is assigned to @gmackall but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
We currently use AGP 8.7.3 and gradle 8.12 in our templates and most of CI, and the linked bug is fixed. I'm going to close this, as there is a bug solely for java 21 support #163158 (the only remaining piece). |
This 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 |
Goals:
Cannot invoke method exec() on null object
occured at flutter.groovy:1041 (Add to App Project, AGP 8.x.x) #138523 and any other doLast block issuesThe text was updated successfully, but these errors were encountered: