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

Android

-

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)

  1. E89c73d1140dcc597d5c61a9fa3f60c7?d=mm

    lilliesl

    Jan 24, 2018 10:32

    Happening to me in 2017.3.0f3 while doing a Gradle build with asset bundles. OSX 10.12.16

  2. Df4f9c27aa65f91ab13b610f5768cb76?d=mm

    Colin49

    Jan 20, 2018 05:27

    Also confirmed in 2017.3.0f3 while doing a Gradle build with asset bundles. OSX 10.12.67.

  3. 0343c05567a95f722e035ec415ae5da1?d=mm

    nullterm

    Jan 18, 2018 21:22

    I am also hitting this error trying to do an Android build.

  4. Ead426a16e833e2e26cbe7bf351429a9?d=mm

    stefano_s

    Jan 04, 2018 15:24

    The same happens in Unity 2017.3.0p1 while building with compression LZ4HC, buildSystem Gradle.

  5. B940618813c66043a1888dbb94e133de?d=mm

    MikePeters

    Dec 27, 2017 18:06

    Just ran across this issue in 2017.3.0f3 while trying to do a build.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.