Hey Everyone,
Im trying to build for android and am failing. The build works properly when the “Scripting Backend” is set to Mono 2x but switching to IL2CPP causes the failure.
The console log below is what is being displayed. I recently updated unity versions from 2020.3.13f1 to 2020.3.24f1, and some other packages like Firebase, and ECS.
Any help is much appreciated.
Thanks in advance!
Build Android-Build failed after 13.25m.
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\Unity\Hub\Editor\2020.3.24f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.24f1\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.24f1\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.24f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.24f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Task :launcher:preBuild UP-TO-DATE
Task :launcher:preDebugBuild UP-TO-DATE
Task :unityLibrary:preBuild UP-TO-DATE
Task :unityLibrary:preDebugBuild UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:preDebugBuild UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugAidl NO-SOURCE
Task :unityLibrary:compileDebugAidl NO-SOURCE
Task :launcher:compileDebugAidl NO-SOURCE
Task :unityLibrary:packageDebugRenderscript NO-SOURCE
Task :launcher:compileDebugRenderscript NO-SOURCE
Task :launcher:generateDebugBuildConfig UP-TO-DATE
Task :launcher:javaPreCompileDebug UP-TO-DATE
Task :launcher:generateDebugResValues UP-TO-DATE
Task :launcher:generateDebugResources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:packageDebugRenderscript NO-SOURCE
Task :unityLibrary:compileDebugRenderscript NO-SOURCE
Task :unityLibrary:generateDebugResValues UP-TO-DATE
Task :unityLibrary:generateDebugResources UP-TO-DATE
Task :unityLibrary:packageDebugResources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugRenderscript NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:generateDebugResValues UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:generateDebugResources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:packageDebugResources UP-TO-DATE
Task :launcher:mergeDebugResources UP-TO-DATE
Task :launcher:createDebugCompatibleScreenManifests UP-TO-DATE
Task :launcher:extractDeepLinksDebug UP-TO-DATE
Task :unityLibrary:extractDeepLinksDebug UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksDebug UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:processDebugManifest UP-TO-DATE
Task :unityLibrary:compileDebugLibraryResources UP-TO-DATE
Task :unityLibrary:parseDebugLocalResources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:parseDebugLocalResources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:generateDebugRFile UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugLibraryResources UP-TO-DATE
Task :unityLibrary:generateDebugBuildConfig UP-TO-DATE
Task :unityLibrary:javaPreCompileDebug UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:generateDebugBuildConfig UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileDebug UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugJavaWithJavac UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarDebug UP-TO-DATE
Task :launcher:mergeDebugShaders UP-TO-DATE
Task :launcher:compileDebugShaders NO-SOURCE
Task :launcher:generateDebugAssets UP-TO-DATE
Task :unityLibrary:mergeDebugShaders UP-TO-DATE
Task :unityLibrary:compileDebugShaders NO-SOURCE
Task :unityLibrary:generateDebugAssets UP-TO-DATE
Task :unityLibrary:packageDebugAssets
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugShaders UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugShaders NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:generateDebugAssets UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:packageDebugAssets UP-TO-DATE
Task :launcher:mergeDebugAssets
Task :launcher:processDebugJavaRes NO-SOURCE
Task :unityLibrary:processDebugJavaRes NO-SOURCE
Task :unityLibrary:bundleLibResDebug NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:processDebugJavaRes NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:bundleLibResDebug NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarDebug UP-TO-DATE
Task :unityLibrary:processDebugManifest
Task :launcher:processDebugManifest
Task :unityLibrary:generateDebugRFile UP-TO-DATE
Task :launcher:processDebugResources
Task :unityLibrary:compileDebugJavaWithJavac UP-TO-DATE
Task :unityLibrary:bundleLibCompileToJarDebug UP-TO-DATE
Task :launcher:compileDebugJavaWithJavac UP-TO-DATE
Task :launcher:compileDebugSources UP-TO-DATE
Task :unityLibrary:bundleLibRuntimeToJarDebug UP-TO-DATE
Task :launcher:checkDebugDuplicateClasses
Task :launcher:dexBuilderDebug UP-TO-DATE
Task :launcher:mergeDebugJniLibFolders UP-TO-DATE
Task :unityLibrary:BuildIl2CppTask
Building libil2cpp.so with AndroidToolChain
Output directory: C:\Doppel Studios\Solcala2\Temp\Android-Build\gradleOut\unityLibrary\src\main\jniLibs\armeabi-v7a
Cache directory: C:\Doppel Studios\Solcala2\Temp\Android-Build\gradleOut\unityLibrary\build\il2cpp_armeabi-v7a_Debug\il2cpp_cache
Task :launcher:mergeDebugJavaResource
Task :launcher:desugarDebugFileDependencies
Task :unityLibrary:BuildIl2CppTask
ObjectFiles: 837 of which compiled: 837
Time Compile: 134209 milliseconds Unity.Transforms.cpp
Time Compile: 29915 milliseconds Generics50.cpp
Time Compile: 25341 milliseconds Il2CppInvokerTable.cpp
Time Compile: 20558 milliseconds Unity.Mathematics.cpp
Time Compile: 17310 milliseconds Lump_libil2cpp_vm.cpp
Time Compile: 16616 milliseconds Unity.TextMeshPro3.cpp
Time Compile: 15961 milliseconds GenericMethods64.cpp
Time Compile: 15348 milliseconds debugger-agent.c
Time Compile: 14556 milliseconds Unity.TextMeshPro2.cpp
Time Compile: 13793 milliseconds Unity.TextMeshPro4.cpp
Total compilation time: 523414 milliseconds.
Total link time: 32584 milliseconds.
Cleaned up 0 object files.
Task :unityLibrary:mergeDebugJniLibFolders
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugJniLibFolders UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugNativeLibs UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:stripDebugDebugSymbols NO-SOURCE
Task :unityLibrary:FirebaseApp.androidlib:copyDebugJniLibsProjectOnly UP-TO-DATE
Task :launcher:validateSigningDebug UP-TO-DATE
Task :unityLibrary:extractDebugAnnotations UP-TO-DATE
Task :unityLibrary:mergeDebugGeneratedProguardFiles UP-TO-DATE
Task :unityLibrary:mergeDebugConsumerProguardFiles UP-TO-DATE
Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
Task :unityLibrary:compileDebugSources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:extractDebugAnnotations UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugGeneratedProguardFiles UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugConsumerProguardFiles UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:mergeDebugJavaResource UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:syncDebugLibJars UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:bundleDebugAar UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:compileDebugSources UP-TO-DATE
Task :unityLibrary:FirebaseApp.androidlib:assembleDebug UP-TO-DATE
Task :unityLibrary:mergeDebugJavaResource
Task :unityLibrary:syncDebugLibJars
Task :unityLibrary:mergeDebugNativeLibs
Task :unityLibrary:stripDebugDebugSymbols
Task :unityLibrary:copyDebugJniLibsProjectOnly
Task :unityLibrary:copyDebugJniLibsProjectAndLocalJars
Task :unityLibrary:bundleDebugAar
Task :unityLibrary:assembleDebug
Task :launcher:mergeDebugNativeLibs
Task :launcher:stripDebugDebugSymbols
Task :launcher:mergeExtDexDebug
Task :launcher:mergeDexDebug
Task :launcher:packageDebug FAILED
74 actionable tasks: 22 executed, 52 up-to-date
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:launcher:packageDebug’.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
java.lang.OutOfMemoryError (no error message)
- 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 9m 57s
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Unity.Build.ResultBase:LogResult () (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/ResultBase.cs:65)
Unity.Build.Editor.BuildConfigurationInspector/<>c:<.cctor>b__34_0 (Unity.Build.BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:42)
Unity.Build.Editor.BuildConfigurationInspector/<>c__DisplayClass30_0:b__1 () (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:128)
UnityEngine.GUIUtility:processEvent (int,intptr,bool&)