IL2CPP-Build failing: "no matching function for call" linking to addressable function

Unity 2019.4.261f

I can’t build my android project with IL2CPP (ARMv7 & ARM64) selected. Working fine in Mono.
I know IL2CPP issues seam to be quite common, but and I tried all the fixes I could find, nothing worked.

My error is different though then any I have seen online and it somehow seams to be linked with addressables? (Screenshot)

I have started a new project and added Addressables, there is no problem. I have removed the addressables and reinstalled them, as well as trying it with different versions (also a very old one). Nothing changed, the error is always the same.

Maybe I don’t really understand the error right.
I am super lost :frowning:

Some of the stuff I tried:
-Running as admin (both IL2CPP.exe as well as Unity)
-Reinstalling Addressables
-Rebuilding Library (just did that couple of hours before because of another problem)
-Relinking NDK (using a custom didn’t work because unity is very strict in what version it wants)
-Updating Unity (from 2019.4.25)
-Building not an apk but an aab
-Delete IL2CPP Cache

Here is a Screeshot of the line of code that makes it all fail and why I think its related to Addressables:


https://ibb.co/Kmdj6ZZ

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

Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.26f1\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:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.26f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.26f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.4.26f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.26f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="E:/MySurname Dropbox/Mark MySurname/Mark MySurname/Projekte/UnityGames/MyAppname/MyAppname app/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="E:/MySurname Dropbox/Mark MySurname/Mark MySurname/Projekte/UnityGames/MyAppname/MyAppname app/Temp/StagingArea/Il2Cpp/il2cppOutput" 

stdout:
Building libil2cpp.so with AndroidToolChain
    Output directory: E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp:30136:80: error: no matching function for call to 'IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628'
                        SimpleCoroutineAwaiter_1_tA359FE42EF206CFA705DA5960EECF67F2E120EFC * L_42 = IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628(L_41, /*hidden argument*/NULL);
                                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp:27849:105: note: candidate function not viable: no known conversion from 'AsyncOperationHandle_1_t02C05A82FC7E95C55852C39FE5A21FCB75A7EA35' to 'RuntimeObject *' (aka 'Il2CppObject *') for 1st argument
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SimpleCoroutineAwaiter_1_tA359FE42EF206CFA705DA5960EECF67F2E120EFC * IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628 (RuntimeObject* ___coroutine0, const RuntimeMethod* method);
                                                                                                        ^
1 error generated.


Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.4.26f1\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.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\external\xxHash" -I"E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\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:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp" -o "E:/MySurname Dropbox/Mark MySurname/Mark MySurname/Projekte/UnityGames/MyAppname/MyAppname app/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/77241A78C4FCECB3694AE7ABF03E3700.o"

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

Unbehandelte Ausnahme: Unity.IL2CPP.Building.BuilderFailedException: E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp:30136:80: error: no matching function for call to 'IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628'
                        SimpleCoroutineAwaiter_1_tA359FE42EF206CFA705DA5960EECF67F2E120EFC * L_42 = IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628(L_41, /*hidden argument*/NULL);
                                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp:27849:105: note: candidate function not viable: no known conversion from 'AsyncOperationHandle_1_t02C05A82FC7E95C55852C39FE5A21FCB75A7EA35' to 'RuntimeObject *' (aka 'Il2CppObject *') for 1st argument
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SimpleCoroutineAwaiter_1_tA359FE42EF206CFA705DA5960EECF67F2E120EFC * IEnumeratorAwaitExtensions_GetAwaiter_m74AE327452229E1363DFB29EF5AED2037A6D8628 (RuntimeObject* ___coroutine0, const RuntimeMethod* method);
                                                                                                        ^
1 error generated.


Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.4.26f1\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.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\il2cpp\external\xxHash" -I"E:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\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:\MySurname Dropbox\Mark MySurname\Mark MySurname\Projekte\UnityGames\MyAppname\MyAppname app\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp12.cpp" -o "E:/MySurname Dropbox/Mark MySurname/Mark MySurname/Projekte/UnityGames/MyAppname/MyAppname app/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/77241A78C4FCECB3694AE7ABF03E3700.o"

   bei Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   bei Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   bei il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
   bei il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
   bei 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 <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <e6522990dfdf40458abbd5eeeb595b91>: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.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d76da2c9a45b4b02b93f56ae560b1d44>: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 <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I also tried changing the Api Compatibility Level in the Player Settings, both throw the same error.

The Additional Error is:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <e6522990dfdf40458abbd5eeeb595b91>:0
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <e6522990dfdf40458abbd5eeeb595b91>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr)