Gradle Build issues

Hi everyone,

I’m running into issues with Gradle while trying to build my Unity project for Android.

Setup:

  • Unity version: 2022.3.14f1 (LTS)
  • Android target SDK: API Level 35 (required by Google Play)
  • Gradle versions tried: 8.11, 9.0.0, and earlier ones (all failing)

Problem:
When I try to make an Android build, Gradle fails with errors. Here’s the relevant log snippet:

> Task :launcher:checkReleaseAarMetadata FAILED

[Incubating] Problems report is available at: file:///.../problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

The build starts normally, but fails during :launcher:checkReleaseAarMetadata. I’ve tried different Gradle versions but none work for me with API 35.

Questions:

  1. Which Gradle version is officially supported/recommended for Unity 2022.3 when targeting API Level 35?
  2. Do I also need to update the Android Gradle Plugin (AGP) version in build.gradle along with Gradle?
  3. Is there a workaround or patch needed to make Unity 2022.3.x compatible with API 35 builds?

Any guidance would be greatly appreciated since Google Play requires API 35 now, and I’m blocked on this.

Thanks in advance!

You can use Editor version 2022.3.62f1 to fix it