Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2017.4.X, 2018.2.X
Votes
72
Found in
2017.3.0b1
Issue ID
969563
Regression
Yes
[Android] Gradle build fails when building project with asset bundle
Reproduction steps:
1. Open the attached project
2. The project has 1 asset bundle. The bug isn't reproducible using other asset bundles or even the same bundle but using different compression
3. Try to build for Android using Gradle
4. Fails with following output:
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx1024M -classpath "C:\Program Files\Unity 2017.3.0b1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "--no-daemon" "assembleDebug"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':packageDebug'.
> Java heap space
and following error window:
https://gyazo.com/6443561e02dd58fc7dff970cd477c218
Regression introduced in 2017.3.0b1
Reproducible in:
2019.1.0a6, 2018.3.0b1, 2018.3.0a6
Environment:
Windows 10 and Mac 10.13
Comments (45)
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Lesha-VH
Apr 20, 2018 15:58
same problem - just depends on size of used resources
seems that uncompressed apk does not fit 2gb - that fail
occasionally can hang in java
Neogene
Apr 12, 2018 06:48
Same problem!
augivision
Mar 28, 2018 21:08
I deleted any and all .webm video files from my project and now it builds out just fine.
I hope this helps someone else!
augivision
Mar 28, 2018 20:57
I am having the same issue. The odd part is, it was building fine in the person licensed version. I only started having this issue when I switched to Unity Plus....
Upgrade and then it doesn't work? Maybe I should get a refund and go back to the free version?
MagoParodi
Mar 22, 2018 18:18
Fixed! In my case, having Ads Service ON and also having the Ads Assets in my project folder was causing the error. I removed all Ads Assets from my folder and everything's working fine.
misterbung
Mar 19, 2018 04:19
Having the same issue with Unity 2017.3.1f1.
Will build if I don't add a 500meg video to be played, gives this error when I do.
Makes it impossible to build out 360 panno app.
MagoParodi
Mar 16, 2018 15:11
Both on gradle build system and internal, none working
MagoParodi
Mar 16, 2018 15:10
Hi, same issue here on 2017.3.1f1 on OSX 10.11.5
dariony
Mar 15, 2018 18:27
Anyone know if this is still an issue in 2018.1?
dariony
Mar 15, 2018 18:27
Anyone know if this is still an issue in 2018.1?