Search Unity

Build - IL2CPP errors - Please, how fix it?

Discussion in 'Android' started by Nakaii, Sep 2, 2017.

  1. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,553
    It looks like the compiler error from clang++ is being truncated here. There should be a full error message in the editor log file. Can you look for that one?
     
  2. extremepro999

    extremepro999

    Joined:
    Sep 11, 2020
    Posts:
    14
    kind of same error but i am building for pc
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,553
    Can you provide the specific error message you see?
     
  4. mohdkamilyt

    mohdkamilyt

    Joined:
    Mar 10, 2021
    Posts:
    1
    Please help me!

    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\ImNotoK\Unity Projects\Quiz Game\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="E:/ImNotoK/Unity Projects/Quiz Game/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="E:/ImNotoK/Unity Projects/Quiz Game/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: E:\ImNotoK\Unity Projects\Quiz Game\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31089:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C'
    bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13523:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31118:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C'
    bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13523:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:33142:15: error: no matching function for call to 'Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1'
    bool L_34 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_33, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13622:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:33199:15: error: no matching function for call to 'Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1'
    bool L_58 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_57, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13622:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    4 errors generated.


    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\external\xxHash" -I"E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp" -o "E:/ImNotoK/Unity Projects/Quiz Game/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4BA050644C2163BC359E443235DF0FA5.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31089:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C'
    bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13523:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31118:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C'
    bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13523:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:33142:15: error: no matching function for call to 'Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1'
    bool L_34 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_33, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13622:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:33199:15: error: no matching function for call to 'Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1'
    bool L_58 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_57, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13622:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
    ^
    4 errors generated.


    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\il2cpp\external\xxHash" -I"E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "E:\ImNotoK\Unity Projects\Quiz Game\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp" -o "E:/ImNotoK/Unity Projects/Quiz Game/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4BA050644C2163BC359E443235DF0FA5.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <bd70c40e01f641bdb7d836e1e97755bc>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>: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.<message truncated>
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,553
    This is either a result of a bug in IL2CPP or some invalid IL code.

    It looks like the error happens in code converted from the PlayMaker.dll assembly - is that assembly compiled against the same version of Unity used with this project? It looks like there might be an API mis-match that is causing this error.
     
  6. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    91
    I found this issue that seems to happen randomly. It seems related to addressables, but how to know where the issue comes specifically :S.

    ] at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.ResourceManagement.Util.LRUCacheAllocationStrategy.New (System.Type type, System.Int32 typeHash) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.ResourceManagement.ResourceManager.CreateOperation[T] (System.Type actualType, System.Int32 typeHash, System.Int32 operationHash, System.Action`1[T] onDestroyAction) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.ResourceManagement.ResourceManager.ProvideResource (UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation location, System.Type desiredType, System.Boolean releaseDependenciesOnFailure) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.ResourceManagement.ResourceManager.ProvideResource[TObject] (UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation location) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AddressableAssets.Initialization.InitializationOperation.CreateInitializationOperation (UnityEngine.AddressableAssets.AddressablesImpl aa, System.String playerSettingsLocation, System.String providerSuffix) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AddressableAssets.AddressablesImpl.InitializeAsync (System.String runtimeDataPath, System.String providerSuffix, System.Boolean autoReleaseHandle) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AddressableAssets.AddressablesImpl.get_ChainOperation () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AddressableAssets.AddressablesImpl.LoadResourceLocationsAsync (System.Object key, System.Type type) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AddressableAssets.Addressables.LoadResourceLocationsAsync (System.Object key, System.Type type) [0x00000] in <00000000000000000000000000000000>:0 at Module.Addressables.CmdAddressables+<InitializeAndLoadAssets>d__4`1[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at Module.Addressables.CmdAddressables.InitializeAndLoadAssets[T] (System.String assetNameOrLabel, System.Collections.Generic.Dictionary`2[TKey,TValue] createdObjs) [0x00000] in <00000000000000000000000000000000>:0 at Module.Preloader.FSMLoaderAddressables+<CheckForTransition>d__3.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at Module.Preloader.FSMLoaderAddressables.CheckForTransition () [0x00000] in <00000000000000000000000000000000>:0 at Game.Arch.Manager.GameManager.DoLateUpdate () [0x00000] in <00000000000000000000000000000000>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <00000000000000000000000000000000>:0 at Module.Preloader.FSMLoaderAddressables+<CheckForTransition>d__3.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at Module.Preloader.FSMLoaderAddressables.CheckForTransition () [0x00000] in <00000000000000000000000000000000>:0 at Game.Arch.Manager.GameManager.DoLateUpdate () [0x00000] in <00000000000000000000000000000000>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 at DG.Tweening.Core.DOSetter`1[T].Invoke (T pNewValue) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.WorkRequest:Invoke() UnityEngine.UnitySynchronizationContext:Exec()"]
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,762
    Saw similar issues related to stripping, what is your Managed Stripping value ?
     
  8. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    91
    What I found is that, rebuilding addressables (2020.3.15 version) before build (even without modifying addressables) resolves it.

    I'm using scriptingbackend: IL2CPP
    API compatibility level: Net standard 2.0
    ManageStripping level: Low.
     
    Last edited: Sep 20, 2021
  9. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    387
    Hello,

    I have an issue with building for Android with IL2CPP. The building process works with Mono. Unity version 2021.2.0b11.3437. I have enough disk space.
    Note: I updated Unity for this project from 2019.4.26f1 to the current version. It worked in the earlier version. The library has been rebuilt. I am using OculusXR to build for the Quest platforms.

    The error occurs at the FinishPhase.

    Any help is much appreciated.

    > 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\2021.2.0b11\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\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.2.0b11\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\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    > 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:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :launcher:prepareLintJar UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :launcher:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:processReleaseResources UP-TO-DATE
    > Task :launcher:mergeExtDexRelease UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :launcher:sdkReleaseDependencyData UP-TO-DATE
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:compileReleaseSources UP-TO-DATE
    > Task :launcher:lintVitalRelease
    > Task :launcher:dexBuilderRelease UP-TO-DATE
    > Task :launcher:mergeDexRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :launcher:mergeReleaseNativeLibs FAILED
    43 actionable tasks: 5 executed, 38 up-to-date
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    Futuclass.Editor.BuildAddressable/<>c:<Initialize>b__0_0 (UnityEditor.BuildPlayerOptions) (at Assets/_Futuclass/Scripts/Editor/Build/BuildAddressable.cs:16)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:mergeReleaseNativeLibs'.
    > 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/libopenxr_loader.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studi...kaging_of_prebuilt_dependencies_used_by_cmake
    * 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 4s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    Futuclass.Editor.BuildAddressable/<>c:<Initialize>b__0_0 (UnityEditor.BuildPlayerOptions) (at Assets/_Futuclass/Scripts/Editor/Build/BuildAddressable.cs:16)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    stderr[
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:mergeReleaseNativeLibs'.
    > 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/libopenxr_loader.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studi...kaging_of_prebuilt_dependencies_used_by_cmake
    * 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 4s
    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\Unity\Hub\Editor\2021.2.0b11\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\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.2.0b11\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\2021.2.0b11\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    > 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:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :launcher:prepareLintJar UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :launcher:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:processReleaseResources UP-TO-DATE
    > Task :launcher:mergeExtDexRelease UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :launcher:sdkReleaseDependencyData UP-TO-DATE
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:compileReleaseSources UP-TO-DATE
    > Task :launcher:lintVitalRelease
    > Task :launcher:dexBuilderRelease UP-TO-DATE
    > Task :launcher:mergeDexRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :launcher:mergeReleaseNativeLibs FAILED
    43 actionable tasks: 5 executed, 38 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <f11f51e404a14fc28663376d5ae6cde8>: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 <f11f51e404a14fc28663376d5ae6cde8>: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 <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f11f51e404a14fc28663376d5ae6cde8>: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 <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f11f51e404a14fc28663376d5ae6cde8>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
    Futuclass.Editor.<>c:<Initialize>b__0_0(BuildPlayerOptions) (at Assets/_Futuclass/Scripts/Editor/Build/BuildAddressable.cs:16)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    Build completed with a result of 'Failed' in 66 seconds (65600 ms)
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    Futuclass.Editor.BuildAddressable/<>c:<Initialize>b__0_0 (UnityEditor.BuildPlayerOptions) (at Assets/_Futuclass/Scripts/Editor/Build/BuildAddressable.cs:16)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 8 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in <76a445b462cc49e2975056a950390db7>:0
    at Futuclass.Editor.BuildAddressable+<>c.<Initialize>b__0_0 (UnityEditor.BuildPlayerOptions options) [0x0000b] in C:\Projects\Unity\Futuclass\futuclass\Futuclass\Assets\_Futuclass\Scripts\Editor\Build\BuildAddressable.cs:16
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00072] in <76a445b462cc49e2975056a950390db7>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    I don't think this one is related to the build process.
    ArgumentNullException: Value cannot be null.
    Parameter name: source
    System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <6db93e44953a44ec9dcacc4ba86c2139>:0)
    System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value) (at <6db93e44953a44ec9dcacc4ba86c2139>:0)
    UnityEditor.PreferencesProvider.FilePopup (UnityEngine.GUIContent label, System.String selectedString, System.String[]& names, System.String[]& paths, UnityEditor.PreferencesProvider+RefString outString, System.String defaultString, System.Action onChanged, UnityEditor.EditorUtility+SelectMenuItemFunction ApplicationsListOnClick) (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.PreferencesProvider.ShowExternalApplications (System.String searchContext) (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.PreferencesProvider.OnGUI (System.String searchContext, System.Action`1[T] drawAction) (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.PreferencesProvider+<>c__DisplayClass71_0.<CreateExternalToolsProvider>b__0 (System.String searchContext) (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.SettingsProvider.OnGUI (System.String searchContext) (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.SettingsWindow.DrawControls () (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEditor.SettingsWindow.DrawSettingsPanel () (at <76a445b462cc49e2975056a950390db7>:0)
    UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <f68bef9660d34944b32d30927b669404>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
    Last edited: Sep 21, 2021
  10. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,762
    One error says, you have multiple libopenxr_loader.so libraries in your project, you need to remove one.
     
  11. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    387
    These are all lobopenxr_loader.so files in the project directory. Each of them is for a different scripting backend or a different architecture. This cannot be the issue, right?
    upload_2021-9-21_10-58-59.png
     
  12. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,762
    Well, gradle complains that it's an issue, that library might sit in .aar file somewhere, so searching via file explorer might be not the best idea
     
  13. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    387
    In the image below you can see all .aar files. What has cause this issue? How do I solve it?

    upload_2021-9-21_12-9-40.png
     
  14. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    387
    @Tomas1856 I was able to reproduce this issue in a new project and found one way to get rid of it. This helped me get rid of the issue in the original project as well. However, the "fix" is not most likely intended behaviour and it disallows me from using Unity's OpenXR plugin on Android with Quest.

    Namely, enabling "Oculus Quest Support" in the OpenXR Feature Groups results in the build failure. Disabling it, makes the build successful.
    upload_2021-9-21_12-27-12.png

    My guess is that toggling this perhaps creates another platform independent libopenxr_loader.so? How can I fix this issue while still providing Oculus Quest Suppor?
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,762
    Could you try asking in https://forum.unity.com/forums/vr.160/, since it might be an issue with Oculus plugin. Alternatively you can submit a bug https://unity3d.com/unity/qa/bug-reporting with repro project + steps, then appropriate team will look at this.
     
  16. nexcentric

    nexcentric

    Joined:
    Aug 3, 2020
    Posts:
    1
    So, is it that to compile for IL2CPP while using addressables it is needed to always rebuild addressables before building?
    Thanks ;)
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,762
    That shouldn't be required, if that's the case, that would be a bug
     
unityunity