Search Issue Tracker

Fixed in Unity 2018.3

Votes

72

Found in

2017.3.0b1

Issue ID

969563

Regression

Yes

[Android] Gradle build fails when building project with asset bundle

Android

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

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 (46)

  1. A14dae9e30566671cde972932680e3f8?d=mm

    RedVonix

    Apr 14, 2019 00:04

    Also reproduced issue in Unity 2018.3.12f1.

  2. A14dae9e30566671cde972932680e3f8?d=mm

    RedVonix

    Apr 13, 2019 20:32

    Reproduced in 2018.3.8f1.

  3. F32b01b6d43aa8ac07653ef764f9d25a?d=mm

    aureliomv

    Jan 31, 2019 00:51

    Unity 2018.3.3f1: issue happened with the LWRP asset.
    Shows an error "Gradle prewarm failed"

  4. 05445ebed536dfdea8fbc4d7d355ab14?d=mm

    sachinkhanna786

    Jan 27, 2019 14:19

    This happens a lot with me when I try this.

    Sachin Khanna
    https://phaseradar.com

  5. 62a0db081665e5b3f68d7f409770b13c?d=mm

    cqc_29a

    Jan 23, 2019 23:21

    I ran into this bug with Unity version 2018.3.1f1

  6. 62a0db081665e5b3f68d7f409770b13c?d=mm

    cqc_29a

    Jan 23, 2019 23:19

    I ran into this bug with Unity version 2018.3.1f1

  7. 62a0db081665e5b3f68d7f409770b13c?d=mm

    cqc_29a

    Jan 23, 2019 23:16

    I ran into this bug with Unity version 2018.3.1f1

  8. Edda78c780f00da9ec3fd47f766d20b1?d=mm

    vthera_trond

    Dec 12, 2018 00:46

    Change logs indicate that this is fixed in 2018.2.16f1. However, we still get fails when running Unity from the command line with -Xmx1024M set when Gradle is called. In 2018.2.5f1, it gave -Xmx2048M. We're not keen to push up to 2018.3 beta, but I'm hoping its fixed there.

  9. Edda78c780f00da9ec3fd47f766d20b1?d=mm

    vthera_trond

    Dec 12, 2018 00:46

    Change logs indicate that this is fixed in 2018.2.16f1. However, we still get fails when running Unity from the command line with -Xmx1024M set when Gradle is called. In 2018.2.5f1, it gave -Xmx2048M. We're not keen to push up to 2018.3 beta, but I'm hoping its fixed there.

  10. F7fb58fa29523686f210a6224dd7f5e3?d=mm

    amaceikaCortina

    Dec 06, 2018 16:30

    Ran across this issue in 2017.3.1f1 also ran in to build errors with the latest version of Android Studio had to revert the tools folder.

All about bugs

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