Search Unity

Resolved A Failure occured while excuting com.android.build.gradle.internal.tasks.Workers$ActionFacade

Discussion in 'Android' started by DailyFun, May 8, 2023.

  1. DailyFun

    DailyFun

    Joined:
    Jul 17, 2018
    Posts:
    3
    My builds worked fine, until i made a backup of the project, which i already did a lot of times for this particular project, but out of nowhere i got this error and now i can't build my project anymore. The build stops at Building Gradle and a window with this error pops up "A Failure occured while excuting com.android.build.gradle.internal.tasks.Workers$ActionFacade" after that i got these errors in the console.

    Nr 1: ___________________________________
    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=false' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets
    > Task :launcher:configureReleaseDependencies UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
    > Task :launcher:parseReleaseIntegrityConfig UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest
    > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:bundleLibResRelease NO-SOURCE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs
    > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :unityLibrary:processReleaseManifest
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mergeReleaseNativeLibs
    > Task :launcher:processReleaseManifest
    > Task :unityLibrary:stripReleaseDebugSymbols
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:processReleaseResources FAILED
    > Task :launcher:bundleReleaseResources FAILED
    > Task :launcher:mergeExtDexRelease
    55 actionable tasks: 28 executed, 27 up-to-date

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    Nr 2_________________
    Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:processReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > Android resource linking failed
    C:\Users\Firma\.gradle\caches\transforms-2\files-2.1\dcabf090caecffb1d02527a5ebf491a6\jetified-unity-ads-4.7.0\AndroidManifest.xml:52:9-54:58: AAPT: error: unexpected element <property> found in <manifest><application>.


    * 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.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:bundleReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > Android resource linking failed
    C:\UnityProjekte\IndustryIsland\IndustryIsland\Temp\gradleOut\launcher\build\intermediates\bundle_manifest\release\bundle-manifest\AndroidManifest.xml:197: AAPT: error: unexpected element <property> found in <manifest><application>.


    * 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.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUILD FAILED in 8s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    Nr 3: ___________________________________
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

    stderr[
    Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:processReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > Android resource linking failed
    C:\Users\Firma\.gradle\caches\transforms-2\files-2.1\dcabf090caecffb1d02527a5ebf491a6\jetified-unity-ads-4.7.0\AndroidManifest.xml:52:9-54:58: AAPT: error: unexpected element <property> found in <manifest><application>.


    * 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.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:bundleReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > Android resource linking failed
    C:\UnityProjekte\IndustryIsland\IndustryIsland\Temp\gradleOut\launcher\build\intermediates\bundle_manifest\release\bundle-manifest\AndroidManifest.xml:197: AAPT: error: unexpected element <property> found in <manifest><application>.


    * 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.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUILD FAILED in 8s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[

    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=false' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Exception while marshalling C:\Program Files\UnityEditors\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets
    > Task :launcher:configureReleaseDependencies UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
    > Task :launcher:parseReleaseIntegrityConfig UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest
    > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:bundleLibResRelease NO-SOURCE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs
    > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :unityLibrary:processReleaseManifest
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mergeReleaseNativeLibs
    > Task :launcher:processReleaseManifest
    > Task :unityLibrary:stripReleaseDebugSymbols
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:processReleaseResources FAILED
    > Task :launcher:bundleReleaseResources FAILED
    > Task :launcher:mergeExtDexRelease
    55 actionable tasks: 28 executed, 27 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <fc7be335e11c4872b360501993848bfb>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <fc7be335e11c4872b360501993848bfb>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <55729f52d042492e9efc384182ae2feb>:0)
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

    Nr 4: ___________________________________
    Build completed with a result of 'Failed' in 630 seconds (629888 ms)
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    Nr 5: ___________________________________
    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <55729f52d042492e9efc384182ae2feb>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <55729f52d042492e9efc384182ae2feb>:0
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    I have tried a lot to fix these errors, for example everything from this video
    and i migrated the project to 2021.3.24f1 (LTS) or 2022.2.18f1 but there i get different errors.
    In Project Settings -> Player -> Publishing Settings -> Build i have checked the boxes for "custom main gradle template" and "custom gradle properties template".


    I found this, but i don't know how to solve this and also i am not sure if this is the problem:
    What went wrong:
    Execution failed for task ':launcher:processReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > Android resource linking failed
    C:\Users\Firma\.gradle\caches\transforms-2\files-2.1\dcabf090caecffb1d02527a5ebf491a6\jetified-unity-ads-4.7.0\AndroidManifest.xml:52:9-54:58: AAPT: error: unexpected element <property> found in <manifest><application>.

    Has somebody faced this problems? If you need any further information just ask.
     
  2. DailyFun

    DailyFun

    Joined:
    Jul 17, 2018
    Posts:
    3
    I used the same project without any changes in Unity 2022.2.18f1 and got these following errors:

    NR 1:__________
    > Configure project :launcher
    WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
    The current default is 'true'.
    It will be removed in version 8.0 of the Android Gradle plugin.
    You can add the following to your build.gradle instead:
    android {
    packagingOptions {
    jniLibs {
    useLegacyPackaging = true
    }
    }
    }

    > Configure project :unityLibrary
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    > Task :launcher:writeReleaseApplicationId UP-TO-DATE
    > Task :launcher:analyticsRecordingRelease
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile UP-TO-DATE
    > Task :launcher:mergeReleaseResources FAILED
    > Task :unityLibrary:generateReleaseRFile FAILED
    34 actionable tasks: 3 executed, 31 up-to-date

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    Nr 2:_________________
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:mergeReleaseResources'.
    > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    > Did not resolve 'com.google.firebase:firebase-analytics-unity:10.1.1' which is part of the dependency lock state
    > Did not resolve 'com.google.firebase:firebase-app-unity:10.1.1' which is part of the dependency lock state
    > Could not find com.google.firebase:firebase-analytics-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity.jar
    Required by:
    project :launcher
    > Could not find com.google.firebase:firebase-app-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity.jar
    Required by:
    project :launcher
    > Could not find com.google.firebase:firebase-analytics-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity.jar
    Required by:
    project :launcher > project :unityLibrary
    > Could not find com.google.firebase:firebase-app-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity.jar
    Required by:
    project :launcher > project :unityLibrary

    * 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.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':unityLibrary:generateReleaseRFile'.
    > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    > Could not find com.google.firebase:firebase-analytics-unity:10.7.0.
    Required by:
    project :unityLibrary
    > Could not find com.google.firebase:firebase-app-unity:10.7.0.
    Required by:
    project :unityLibrary

    * 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.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUILD FAILED in 1s

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

    Nr 3:__________________
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

    Environment Variables:

    stderr[
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:mergeReleaseResources'.
    > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    > Did not resolve 'com.google.firebase:firebase-analytics-unity:10.1.1' which is part of the dependency lock state
    > Did not resolve 'com.google.firebase:firebase-app-unity:10.1.1' which is part of the dependency lock state
    > Could not find com.google.firebase:firebase-analytics-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity.jar
    Required by:
    project :launcher
    > Could not find com.google.firebase:firebase-app-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity.jar
    Required by:
    project :launcher
    > Could not find com.google.firebase:firebase-analytics-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...ty/10.1.1/firebase-analytics-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity.jar
    Required by:
    project :launcher > project :unityLibrary
    > Could not find com.google.firebase:firebase-app-unity:10.1.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/ma...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - https://repo.maven.apache.org/maven...pp-unity/10.1.1/firebase-app-unity-10.1.1.pom
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity-10.1.1.jar
    - file:/C:/UnityProjekte/IndustryIsland_NV/IndustryIsland_NV/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity.jar
    Required by:
    project :launcher > project :unityLibrary

    * 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.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':unityLibrary:generateReleaseRFile'.
    > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    > Could not find com.google.firebase:firebase-analytics-unity:10.7.0.
    Required by:
    project :unityLibrary
    > Could not find com.google.firebase:firebase-app-unity:10.7.0.
    Required by:
    project :unityLibrary

    * 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.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUILD FAILED in 1s
    ]
    stdout[

    > Configure project :launcher
    WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
    The current default is 'true'.
    It will be removed in version 8.0 of the Android Gradle plugin.
    You can add the following to your build.gradle instead:
    android {
    packagingOptions {
    jniLibs {
    useLegacyPackaging = true
    }
    }
    }

    > Configure project :unityLibrary
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\UnityEditors\2022.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    > Task :launcher:writeReleaseApplicationId UP-TO-DATE
    > Task :launcher:analyticsRecordingRelease
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile UP-TO-DATE
    > Task :launcher:mergeReleaseResources FAILED
    > Task :unityLibrary:generateReleaseRFile FAILED
    34 actionable tasks: 3 executed, 31 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <ff1dc8b4d2444c6a95db7014a6b9c88b>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.Post<message truncated>
     
  3. alikun

    alikun

    Joined:
    Oct 17, 2018
    Posts:
    17
    Hey, there
    Did you manage to fix this?
     
  4. DailyFun

    DailyFun

    Joined:
    Jul 17, 2018
    Posts:
    3
    no, it's still not working on my windows pc, but i tried to build it on my Mac and there it worked without problems, so i make the build there.

    Edit: I will try to export my project in the next days and make the build in android studio, maybe it works there. I will keep you updated
     
  5. DevKizi

    DevKizi

    Joined:
    Jul 22, 2018
    Posts:
    1
    After I upgrading Unity to version 2021.3.29 and targeting Android SDK 33, the issue was resolved.
     
    manugil likes this.
  6. JOzier21

    JOzier21

    Joined:
    Jul 31, 2014
    Posts:
    4
    I created a Keystore to fix this error
     
  7. taimurhijjazi7

    taimurhijjazi7

    Joined:
    Aug 30, 2023
    Posts:
    1
    My unity version is already 2021.3.30f1 and I tried keystore as well. Nothing is working. Did anyone solve it?
     
  8. amosphere

    amosphere

    Joined:
    Aug 28, 2019
    Posts:
    2
    did you use apple silicon or an intel mac to get the build?
     
  9. unity_9460FB1EA99EC1823D00

    unity_9460FB1EA99EC1823D00

    Joined:
    Aug 3, 2021
    Posts:
    12
    im also facing this issue ....i imported metaaduiencenetweork mediation with admob in unity. all other mediation networks are working but when i import facebook mediation, it says resource linkage failed
     
  10. universalarts

    universalarts

    Joined:
    Apr 18, 2019
    Posts:
    2
    same issue faced by me i am using unity 2021.3.18
    google admob version 8.6.0
    it is empty project i am trying to implement new admob plugin but failed with this error.
    if anyone has any lead please do share the solution
     
  11. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    144
    Same issue for me unity 2021.3.33
     
  12. KevineCove

    KevineCove

    Joined:
    Apr 6, 2019
    Posts:
    7
    Same issue for me in 2021.3.3f1
     
  13. unity_9460FB1EA99EC1823D00

    unity_9460FB1EA99EC1823D00

    Joined:
    Aug 3, 2021
    Posts:
    12
    I have found solution for this issue.
    go to publishing settings>Build and turn on following checks
    main gradle template
    base gradle template
    gradle properties template
    and resolve libraries.
     
    Ahmadshah123 likes this.
  14. KevineCove

    KevineCove

    Joined:
    Apr 6, 2019
    Posts:
    7
    I tried this but the build is still failing with the same message. Where is the "resolve libraries" button or checkbox? Also, do I need to make any modifications to the Gradle templates?

    EDIT: I was able to get the build to succeed by changing the version of play-services-ads in Assets\GoogleMobileAds\Editor\GoogleMobileAdsDependencies.xml (changed to com.google.android.gms:play-services-ads:[22.3.0] from "22.5.0" (with no square brackets.) However, submitting a .AAB to Google Play after doing this resulted in an email about the app being unstable.
     
    Last edited: Jan 29, 2024
  15. FOG_Revolution

    FOG_Revolution

    Joined:
    Oct 12, 2016
    Posts:
    2
    can you please tell your admob version , also have you checked it with facebook ?
     
  16. sardaar

    sardaar

    Joined:
    Oct 21, 2014
    Posts:
    2
    Just clearing the cache and downgrading build targeting to Android SDK 33 Resolved the issue
     
  17. nauman_bhatti

    nauman_bhatti

    Joined:
    Feb 26, 2023
    Posts:
    1
    For everyone, if possible downgrade to unity 2020.3.48f1 and select target api level to 33 and then try to build. It will open powershell and download target api level 33 and you'll be good to go.
    If there are any errors,ask me :)
     
  18. Ahmadshah123

    Ahmadshah123

    Joined:
    Jun 13, 2022
    Posts:
    1
    Thanks it also worked for me
     
    youneselamil likes this.