Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2018.3.X
[Android][Gradle] Build fails when downloading files from jcenter
Steps to reproduce:
1. Delete ',gradle' folder from %USERPROFILE% folder
2. Create a new project
3. Attempt to build an apk
Reproduced on: 2018.3.0b11, 2018.2.0a1, 2018.2.14f1, 2018.3.0b7, 2019,.1.0a6
Not reproducible on: 2017.4.14f1, 2018.1.9f2
A problem occurred configuring root project 'gradleOut'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
Workaround: Create a custom 'mainTemplate'gradle' file and reorder 'repositories' of 'buildscript' and 'allprojects' so that 'jcenter' is not on top.
To create a custom template file go to Player Settings > Publishing Settings > Build > Custom Gradle Template
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- The property of a component becomes read-only when it is bound to "PropertyStreamHandle"
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Aug 22, 2020 11:18
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
Dec 16, 2018 19:03
Ran into the same problem. Everything was building fine on 2018.2.7f1 two days ago.
Suddenly this error popped up. Workaround does not work either. It still tries to fetch the files from jcenter.
If you follow the links in the error message they indeed return "resource not found".
Just to make sure it does not have anything to do with plugins I created a new empty project and tried to build with an empty scene. Same error.
Dec 15, 2018 09:51
This also occurs on 2018.2.18f1
Oct 25, 2018 14:05
For anyone needing to use cloud build with plugins in the meantime before the official fix, I got it working like this:
Oct 25, 2018 00:14
This also occurs on 2018.2.5f1
Oct 24, 2018 21:29
Also it's quite impossible to override the template for other plugins on the Mac...
Oct 24, 2018 21:16
Yeah, thats great, but the workaround doesn't work when other plugins are present and generating their own gradle files.