2021.3.10f1 cannot build with with resolved libraries, but with them deleted, the game cannot run

Hello everyone,

What I’m encountering:

Execution failed for task ':launcher:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/arm64-v8a/libFirebaseCppAnalytics.so'
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details

> 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\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

> Task :unityLibrary:EasyMobile.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preDebugBuild UP-TO-DATE
> Task :unityLibrary:preDebugBuild UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:preDebugBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preDebugBuild UP-TO-DATE
> Task :unityLibrary:packageDebugRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileDebugAidl NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:compileDebugAidl NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:packageDebugRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:packageDebugRenderscript NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:generateDebugResValues
> Task :unityLibrary:generateDebugResValues
> Task :unityLibrary:FirebaseApp.androidlib:generateDebugResValues
> Task :unityLibrary:EasyMobile.androidlib:generateDebugResources
> Task :unityLibrary:FirebaseApp.androidlib:generateDebugResources
> Task :launcher:generateDebugBuildConfig
> Task :unityLibrary:compileDebugAidl NO-SOURCE
> Task :launcher:compileDebugRenderscript NO-SOURCE
> Task :launcher:compileDebugAidl NO-SOURCE
> Task :unityLibrary:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:generateDebugResources
> Task :unityLibrary:EasyMobile.androidlib:packageDebugResources
> Task :launcher:generateDebugResValues
> Task :launcher:generateDebugResources
> Task :unityLibrary:EasyMobile.androidlib:extractDeepLinksDebug
> Task :launcher:createDebugCompatibleScreenManifests
> Task :launcher:javaPreCompileDebug
> Task :launcher:extractDeepLinksDebug
> Task :unityLibrary:FirebaseApp.androidlib:packageDebugResources
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksDebug
> Task :launcher:mergeDebugShaders
> Task :unityLibrary:packageDebugResources
> Task :launcher:compileDebugShaders NO-SOURCE
> Task :unityLibrary:extractDeepLinksDebug
> Task :unityLibrary:compileDebugLibraryResources
> Task :unityLibrary:EasyMobile.androidlib:parseDebugLocalResources
> Task :unityLibrary:FirebaseApp.androidlib:parseDebugLocalResources
> Task :unityLibrary:parseDebugLocalResources
> Task :unityLibrary:EasyMobile.androidlib:compileDebugLibraryResources
> Task :unityLibrary:FirebaseApp.androidlib:compileDebugLibraryResources
> Task :unityLibrary:generateDebugBuildConfig
> Task :unityLibrary:javaPreCompileDebug
> Task :unityLibrary:FirebaseApp.androidlib:generateDebugBuildConfig
> Task :unityLibrary:mergeDebugShaders
> Task :unityLibrary:compileDebugShaders NO-SOURCE
> Task :unityLibrary:generateDebugAssets UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:generateDebugBuildConfig
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileDebug
> Task :unityLibrary:EasyMobile.androidlib:javaPreCompileDebug
> Task :unityLibrary:FirebaseApp.androidlib:mergeDebugShaders
> Task :unityLibrary:FirebaseApp.androidlib:compileDebugShaders NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:generateDebugAssets UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:mergeDebugShaders
> Task :unityLibrary:EasyMobile.androidlib:compileDebugShaders NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:generateDebugAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageDebugAssets
> Task :unityLibrary:FirebaseApp.androidlib:processDebugJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibResDebug NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:packageDebugAssets
> Task :unityLibrary:EasyMobile.androidlib:processDebugJavaRes NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:bundleLibResDebug NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:mergeDebugJniLibFolders
> Task :unityLibrary:FirebaseApp.androidlib:mergeDebugNativeLibs
> Task :unityLibrary:FirebaseApp.androidlib:stripDebugDebugSymbols NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:copyDebugJniLibsProjectOnly
> Task :unityLibrary:EasyMobile.androidlib:mergeDebugJniLibFolders
> Task :unityLibrary:EasyMobile.androidlib:mergeDebugNativeLibs
> Task :unityLibrary:EasyMobile.androidlib:stripDebugDebugSymbols NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:copyDebugJniLibsProjectOnly
> Task :unityLibrary:FirebaseApp.androidlib:processDebugManifest
> Task :unityLibrary:EasyMobile.androidlib:processDebugManifest
> Task :unityLibrary:packageDebugAssets
> Task :unityLibrary:processDebugJavaRes NO-SOURCE
> Task :unityLibrary:bundleLibResDebug NO-SOURCE
> Task :unityLibrary:processDebugManifest
> Task :unityLibrary:FirebaseApp.androidlib:generateDebugRFile
> Task :unityLibrary:EasyMobile.androidlib:generateDebugRFile
> Task :unityLibrary:EasyMobile.androidlib:compileDebugJavaWithJavac
> Task :unityLibrary:FirebaseApp.androidlib:compileDebugJavaWithJavac
> Task :unityLibrary:EasyMobile.androidlib:bundleLibRuntimeToJarDebug
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarDebug
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarDebug
> Task :unityLibrary:EasyMobile.androidlib:bundleLibCompileToJarDebug
> Task :unityLibrary:mergeDebugJniLibFolders
> Task :unityLibrary:generateDebugRFile
> Task :launcher:processDebugManifest
> Task :launcher:generateDebugAssets UP-TO-DATE
> Task :launcher:mergeDebugAssets
> Task :launcher:processDebugJavaRes NO-SOURCE
> Task :launcher:checkDebugDuplicateClasses

> Task :unityLibrary:compileDebugJavaWithJavac

> Task :launcher:mergeDebugJavaResource
> Task :launcher:mergeDebugJniLibFolders
> Task :launcher:validateSigningDebug
> Task :launcher:mergeDebugResources
> Task :unityLibrary:bundleLibCompileToJarDebug
> Task :unityLibrary:bundleLibRuntimeToJarDebug
> Task :unityLibrary:mergeDebugNativeLibs
> Task :unityLibrary:stripDebugDebugSymbols
> Task :launcher:mergeLibDexDebug
> Task :launcher:processDebugResources
> Task :launcher:compileDebugJavaWithJavac
> Task :launcher:compileDebugSources
> Task :unityLibrary:copyDebugJniLibsProjectOnly
> Task :launcher:dexBuilderDebug
> Task :launcher:mergeProjectDexDebug
> Task :launcher:desugarDebugFileDependencies
> Task :launcher:mergeDebugNativeLibs FAILED
> Task :launcher:mergeExtDexDebug
73 actionable tasks: 73 executed

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

What I tried:
Update 2021.3.10f1 from 3.7f1 – same issue
Update Firebase SDKs – same issue
Update Facebook SDK – same issue
Deleted the Library folder and regenerate it – same issue
Android Force Resolver – same issue

But if I Force Resolve the dependencies and then I delete them using “Delete Resolved Libraries”, the project builds.

However, after I installed it on my phone with Android Debug Bridge, the application crashes instantly. Tried several times, no luck.

Is this a known bug from the editor? Does anyone encounter this issue?

I’m encountering this too, 2021.3.9f1 works properly though.

1 Like