Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unity 2023.3.38 Android API 34 Build fails

Discussion in 'Android' started by LegacySystem, May 5, 2024.

  1. LegacySystem

    LegacySystem

    Joined:
    Jan 28, 2021
    Posts:
    56
    Hi everyone. My project builds fine with API 33. When I Changed it to API 34 it gives the following error.

    I hope there will be a solution until August :)

    Code (CSharp):
    1. 1: Task failed with an exception.
    2. -----------
    3. * What went wrong:
    4. Execution failed for task ':launcher:bundleReleaseResources'.
    5. > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
    6.    > AAPT2 aapt2-4.2.0-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
    7.      This should not happen under normal circumstances, please file an issue if it does.
    8.  
    9. * Try:
    10. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    11. ==============================================================================
    12.  
    13. 2: Task failed with an exception.
    14. -----------
    15. * What went wrong:
    16. Execution failed for task ':launcher:processReleaseResources'.
    17. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
    18.    > AAPT2 aapt2-4.2.0-7147631-windows Daemon #1: Unexpected error during link, attempting to stop daemon.
    19.      This should not happen under normal circumstances, please file an issue if it does.
    20.  
    21. * Try:
    22. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    23. ==============================================================================
    24.  
    25. * Get more help at https://help.gradle.org
    26.  
    27. BUİLD FAILED in 7s
    28. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    29.  
    30. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
     
  2. batukan6699

    batukan6699

    Joined:
    Apr 9, 2019
    Posts:
    2
    Same problem with Unity 2021.3.23f1 version. Any help?

    Code (CSharp):
    1. FAILURE: Build completed with 2 failures.
    2.  
    3. 1: Task failed with an exception.
    4. -----------
    5. * What went wrong:
    6. Execution failed for task ':launcher:bundleReleaseResources'.
    7. > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
    8.    > AAPT2 aapt2-4.2.0-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
    9.      This should not happen under normal circumstances, please file an issue if it does.
    10.  
    11. * Try:
    12. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    13. ==============================================================================
    14.  
    15. 2: Task failed with an exception.
    16. -----------
    17. * What went wrong:
    18. Execution failed for task ':launcher:processReleaseResources'.
    19. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
    20.    > AAPT2 aapt2-4.2.0-7147631-windows Daemon #1: Unexpected error during link, attempting to stop daemon.
    21.      This should not happen under normal circumstances, please file an issue if it does.
    22.  
    23. * Try:
    24. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    25. ==============================================================================
    26.  
    27. * Get more help at https://help.gradle.org
    28.  
    29. BUİLD FAILED in 15s
    30. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    31.  
    32. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
     
  3. manugil

    manugil

    Unity Technologies

    Joined:
    Jan 13, 2020
    Posts:
    86
    Do you have a repro project you could share with us? What additional libraries are you using in your project?
     
  4. LegacySystem

    LegacySystem

    Joined:
    Jan 28, 2021
    Posts:
    56
    It seems the issue accour with Facebook. I tried to replicate with minimum SDK. And created a new project with only
    UEDM 1.2.179
    Facebook 17.0.1
    com.google.android.appbundle: 1.8.0,
    com.google.play.common: 1.8.1,
    com.google.play.core: 1.8.1,
    com.google.play.review: 1.8.1,