Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Does anyone else have Android builds failing 50% of the time?

Discussion in 'Unity Build Automation' started by vg_swift-games, Aug 16, 2022.

  1. vg_swift-games

    vg_swift-games

    Joined:
    Aug 2, 2021
    Posts:
    23
    Code (CSharp):
    1. 34417: [2022-08-15T17:28:58Z - Unity] FAILURE: Build failed with an exception.
    2. 34418: [2022-08-15T17:28:58Z - Unity]
    3. 34419: [2022-08-15T17:28:58Z - Unity] * What went wrong:
    4. 34420: [2022-08-15T17:28:58Z - Unity] Execution failed for task ':launcher:dexBuilderDebug'.
    5. 34421: [2022-08-15T17:28:58Z - Unity] > Multiple task action failures occurred:
    6. 34422: [2022-08-15T17:28:58Z - Unity]    > Key C:\Users\buildbot\.gradle\caches\transforms-2\files-2.1\7d5cc4520556f39421c63f6ababa37bc\jetified-exoplayer-ui-2.15.1-runtime.jar is missing in the map.
    7. 34423: [2022-08-15T17:28:58Z - Unity]    > A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
    8. 34424: [2022-08-15T17:28:58Z - Unity]       > No services are registered. Ensure the worker actions use IsolationMode.NONE.
    9. 34425: [2022-08-15T17:28:58Z - Unity]    > A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
    10. 34426: [2022-08-15T17:28:58Z - Unity]       > No services are registered. Ensure the worker actions use IsolationMode.NONE.
    11. 34427: [2022-08-15T17:28:58Z - Unity]    > A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
    12. 34428: [2022-08-15T17:28:58Z - Unity]       > No services are registered. Ensure the worker actions use IsolationMode.NONE.

    upload_2022-8-16_9-33-44.png
     
    allan-oooh and dan_ginovker like this.
  2. Benjamin-Gooding

    Benjamin-Gooding

    Unity Technologies

    Joined:
    Apr 12, 2022
    Posts:
    243
    Are you targeting Mac or Windows as the OS?
     
  3. vg_swift-games

    vg_swift-games

    Joined:
    Aug 2, 2021
    Posts:
    23
    It's set to Automatic
     
  4. Benjamin-Gooding

    Benjamin-Gooding

    Unity Technologies

    Joined:
    Apr 12, 2022
    Posts:
    243
    For the failed builds, are they using Mac or Windows? If you want to send me your project id I can take a look when I have some free time.
     
    vg_swift-games likes this.
  5. vg_swift-games

    vg_swift-games

    Joined:
    Aug 2, 2021
    Posts:
    23
    Thanks, I've sent a PM.
     
  6. vg_swift-games

    vg_swift-games

    Joined:
    Aug 2, 2021
    Posts:
    23
    Can repro build failure on both Mac and Windows, doesn't seem like it makes any difference.
    I forgot to mention that local builds never fail for me.
     
  7. dan_ginovker

    dan_ginovker

    Joined:
    Jun 13, 2021
    Posts:
    75
    Was having this issue on one project, then it went away! Then it came back on another project.

    The fix was something like running a Clean Build, if you don't see me edit this comment with an update it's probably that
     
  8. leshem_unity

    leshem_unity

    Joined:
    Oct 14, 2021
    Posts:
    13
    I have the same issue!

    (both successful and failed builds use windows)

    Code (CSharp):
    1. [2023-04-27T10:12:14Z - Unity] FAILURE: Build failed with an exception.
    2. [2023-04-27T10:12:14Z - Unity]
    3. [2023-04-27T10:12:14Z - Unity] * What went wrong:
    4. [2023-04-27T10:12:14Z - Unity] Execution failed for task ':launcher:dexBuilderDebug'.
    5. [2023-04-27T10:12:14Z - Unity] > Key C:\Users\buildbot\.gradle\caches\transforms-2\files-2.1\94db063520551b7272481eecb2653880\com.google.firebase.firebase-common-20.3.2-runtime.jar is missing in the map.
    6. [2023-04-27T10:12:14Z - Unity]
    upload_2023-4-27_15-0-54.png
     
  9. allan-oooh

    allan-oooh

    Joined:
    Mar 29, 2019
    Posts:
    48
    We've had this issue since July 5th 2022. Every second Android build fails with a jar mapping issue. Clean builds work every time - however there doesn't seem to be a way to trigger clean builds from a git commit (only scheduled builds).
     
  10. MarceloL-Unity

    MarceloL-Unity

    Unity Technologies

    Joined:
    Jan 5, 2021
    Posts:
    12
    Hi all.

    Would you please be able to submit a support ticket in the Unity Dashboard under DevOps -> Help & Support?

    Thanks
     
  11. MarceloL-Unity

    MarceloL-Unity

    Unity Technologies

    Joined:
    Jan 5, 2021
    Posts:
    12
    Hi there.

    The team recently deployed an option in the build target Advanced Settings that might fix this issue.

    Would you please check "Disable Editor Incremental builds" in your Android targets presenting this issue to see if it helps?

    Thanks
     

    Attached Files: