Search Unity

Bug Having trouble building for Android when migrating from Unity 2020 to 2021

Discussion in 'Editor & General Support' started by RaskinX, Feb 14, 2023.

  1. RaskinX

    RaskinX

    Joined:
    Aug 4, 2021
    Posts:
    7
    Hi, I'm in the process of migrating from 2020.3.41f1 to 2021.3.18f1.

    When I'm building locally for Android Unity emits this cryptic error message, even though the designated path is writable.

    I'm on macOS Monterery 12.6.3 running on an Apple M1 Max MacBook Pro (2021).

    This is the error message I'm getting:

    Building Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/build.gradle failed with output:
    Failed because this command failed to write the following output files:
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/gradle.properties
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/local.properties
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/settings.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/GoogleMobileAdsPlugin.androidlib/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/GooglePlayGamesManifest.plugin/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/FirebaseApp.androidlib/build.gradle
    Some/Path/Library/Bee/Android/Prj/IL2CPP/Gradle/gradle/wrapper/gradle-wrapper.properties

    UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)


    Notes:

    1. Our CI builds the game for Android on an Ubuntu instance without a hiccup, I suspect this somehow related to the Apple Silicon version.
    2. A simple build of a new project succeeds.


    I tried cleaning the repo, checking out a worktree in a separate dir to no avail.
    Did anyone experience this issue, any potential solutions?

    Thanks beforehand.
     
  2. RaskinX

    RaskinX

    Joined:
    Aug 4, 2021
    Posts:
    7
    Update:
    This is the reason this had happened, unticking the checkbox resolved the issue.
    upload_2023-2-14_21-53-52.png
     
    m_plqp2 likes this.