Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.38f1
2021.3.8f1
2022.1.14f1
2022.2.0b6
2023.1.0a6
2023.2.0a1
Issue ID
UUM-13137
Regression
No
Gradle Build failure when building a new project
Reproduction steps:
- Create a new Unity project
- Switch the build platform to Android
- Build the project
Expected result: The build is successful and generates an APK with no errors
Actual result: The build fails and does not generate an APK
Reproducible with: 2020.3.38f1, 2021.3.8f1, 2022.1.14f1, 2022.2.0b6, 2023.1.0a6
Reproduced on: Windows 10 Pro
Notes:
- Reproduced on Windows 10.0.19044 Build 19044
- Reproduced on a clean Windows environment/install (cannot have installed any Java/Android dev tools, no Android Studio, no independent JDKs, etc)
- Reproduced on Unity versions installed using Unity Hub 3.2.0
- “Android Build Support” plugin must have “OpenJDK” and “Android SDK & NDK Tools”
The error from GradleBuildFailure_Editor.log says:
{code:java}
- What went wrong:
Could not create service of type FileHasher using .createCachingFileHasher().
> Timeout waiting to lock file hash cache (C:\Users\aaron.zurawski\.gradle\caches\6.1.1\fileHashes). It is currently in use by another Gradle instance.
Owner PID: 16616
Our PID: 14116
Owner Operation:
Our operation:
Lock file: C:\Users\aaron.zurawski\.gradle\caches\6.1.1\fileHashes\fileHashes.lock* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1m 3s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
] {code}
Might be related to the user name...
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Open” button in Inspector does not function for certain Assets
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
Resolution Note:
Unable to reproduce on several machines and several versions of Unity