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

2020.3.0f1 building for Android

Discussion in 'Android' started by a-chambriat, Mar 25, 2021.

  1. a-chambriat

    a-chambriat

    Joined:
    Apr 27, 2014
    Posts:
    26
    Hello,

    Here we have lot of trouble to build for Android on Windows :

    first, some exceptions :
    > Configure project :launcher
    WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
    It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

    (those ones disappear if running editor in Administrator mode)

    And this CRITICAL one:
    * What went wrong:
    Execution failed for task ':launcher:processReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > AAPT2 aapt2-3.6.0-6040484-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
    This should not happen under normal circumstances, please file an issue if it does.

    * Try:
    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.

    I tried using Android Studio to get stacktrace, but results was useless.

    Regards.
     
    Last edited: Mar 26, 2021
  2. a-chambriat

    a-chambriat

    Joined:
    Apr 27, 2014
    Posts:
    26
    same with 2020.3.1f1
     
  3. a-chambriat

    a-chambriat

    Joined:
    Apr 27, 2014
    Posts:
    26