Unity Issue Tracker - Gradle error is thrown when attempting to build empty URP Android project
Closed
UUM-77336
Gradle error is thrown when attempting to build empty URP Android project
Unity: Android
Cannot Reproduce
6.0.X
We cannot reproduce this. The error message means that something is compiled in Java 17 but Unity supports Java 17 fully in 6+. The user should check their configuration to make sure no older versions of Java are taking over.
Reproduction steps:
1. Create a new “3D (URP)” project
2. Open Build Profiles window (File > Build Profiles)
3. Select “Android” platform and press “Switch Platform” button
4. Press “Build” button
Expected result: The build finishes
Actual result: The build fails with Gradle error: Could not compile build file 'C:\...\Library\Bee\Android\Prj\IL2CPP\Gradle\build.gradle'.
Reproducible with: 6000.0.10f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Note:
CQA were not able to reproduce this issue locally
Prioritise and Follow this issue
Have a workaround or additional info about this issue?