Search Unity

Unity Cloud Build (Android) Error, Bumping Bundle Version Code fixed it, only for 1 time

Discussion in 'Unity Build Automation' started by TRG-Paul, Jul 18, 2021.

  1. TRG-Paul

    TRG-Paul

    Joined:
    May 7, 2021
    Posts:
    1

    [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    501: [Unity] java.util.concurrent.TimeoutException: AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: Failed to shut down within 30 seconds. Forcing shutdown
    502: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:183)
    503: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError$default(Aapt2Daemon.kt:168)
    504: [Unity] java.util.concurrent.TimeoutException: AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: Failed to shut down within 30 seconds. Forcing shutdown
    505: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:183)
    506: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError$default(Aapt2Daemon.kt:168)
    507: [Unity] java.util.concurrent.TimeoutException: AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: Failed to shut down within 30 seconds. Forcing shutdown
    508: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:183)
    509: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError$default(Aapt2Daemon.kt:168)
    510: [Unity] WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
    511: [Unity] java.util.concurrent.TimeoutException: AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: Failed to shut down within 30 seconds. Forcing shutdown
    512: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:183)
    513: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError$default(Aapt2Daemon.kt:168)
    514: [Unity] WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
    515: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00033] in <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0
    516: [Unity] at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x0002d] in <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0
    517: [Unity] at UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x0000a] in <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0
    518: [Unity] at UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) [0x0001f] in <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0
    519: [Unity] Rethrow as GradleInvokationException: Gradle build failed
    520: [Unity] Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    521: [Unity] ERROR: Player export failed. Reason: CommandInvokationFailure: Gradle build failed.
    522: [Unity] java.util.concurrent.TimeoutException: AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: Failed to shut down within 30 seconds. Forcing shutdown
    523: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:183)
    524: [Unity] at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError$default(Aapt2Daemon.kt:168)
     
  2. ValeryNikulina

    ValeryNikulina

    Unity Technologies

    Joined:
    Oct 26, 2020
    Posts:
    138
    Hi,

    It might be the issue with the Android SDK version or with Target API level (set in Player Settings), but I cannot say for sure without the full log. If you're still experiencing the issue, could you please submit a support ticket or share with me a link to you Cloud Build history in private messages, so that I could have a look at the full log?

    Thanks!