Search Issue Tracker
By Design
Votes
1
Found in
2017.4
2018.4
2019.3
2019.3.0f3
2020.1
Issue ID
1206643
Regression
No
[Android] Release build fails when having a buildscript block in mainTemplate.gradle
Repro steps:
1. Open QA attached project "repro_1206643"
2. Try to make a release build for Android
Actual: Build fails
Reproducible with: 2017.4.36f1, 2018.4.17f1, 2019.3.2f1, 2020.1.0a23
Notes:
- Development build doesn't fail
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (2020.2.X):
When custom build scripts are used, it's up to user to ensure the correctness of them all.
I've found the solution here:
https://stackoverflow.com/questions/45966028/configuration-with-name-compileclasspath-not-found
Specifically:
- Export project
- Open it in Android Studio
- Change build variant to release
- Build (in Android Studio), should give the same error
- Open project root gradle script and add this directly inside "allprojects" block
configurations {
compileClasspath
}
now the build should succeed.
You can specify custom gradle script in Unity player setting (under Publishing Settings), that way to can resolve issue in Unity.