Today, I tried to access the company’s overseas SDK. The total package error is as follows:
Failed running D:\Program Files\Unity2018.4.1\Editor\Data\il2cpp/build/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:\TombNote_tChinese_test\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\TombNote_tChinese_test\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:\Program Files\Unity2018.4.1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:\Program Files\Unity2018.4.1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="E:/AndroidSDK/NDK" --map-file-parser="D:\Program Files\Unity2018.4.1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="E:\TombNote_tChinese_test\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="E:\TombNote_tChinese_test\Temp\StagingArea\Il2Cpp\il2cppOutput"
stdout:
Building libil2cpp.so with AndroidToolChain
Output directory: E:\TombNote_tChinese_test\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: E:\TombNote_tChinese_test\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
ObjectFiles: 603 of which compiled: 0
Total compilation time: 242 milliseconds.
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\AndroidSDK\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\RFL\AppData\Local\Temp\tmp80DF.tmp" -o "E:\TombNote_tChinese_test\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_EC005744B79151E709C4C1D5591AE889\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "E:\AndroidSDK\NDK\platforms\android-16\arch-arm" -gcc-toolchain "E:\AndroidSDK\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "E:\AndroidSDK\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe
E:\TombNote_tChinese_test\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_2.cpp:43762: error: undefined reference to 'CallSDKFunc'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
Results the data was checked because [dllimport (“_internal”)]
of OS cannot exist when Android is typed.
Solution:
find [dllimport (“_internal”)]
Add judgment platform in the code
#if UNITY_ IOS
[DllImport(“__Internal”)]
#endif
Read More:
- Unity Package Webgl Error: Failed running “D:\Program Files\Unity2018.3.0f2\Unity\Editor\Data\PlaybackEngines\Web
- [Solved] Unity package Error: CommandInvokationFailure: Gradle build failed.
- [Solved] Unity Error: Visual Studio Editor Package version 2.0.11 is available……..
- [Solved] Unity Package Error: FAILURE: Build failed with an exception.
- [Solved] Error d8021: invalid numeric parameter “/wno CPP” cython_bbox
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] Unity3d reports an error using the opencv plug-in: unsafe code may only appear if compiling with/unsafe.
- [Solved] Unity Publish WebGL Error: Unable to parse Build/webTest2.framework.js.gz
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed
- [Solved] Mac Unity Export Android Project Error: Error building Player: Win32Exception
- How to Solve error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe‘ failed
- The imported project “c:\Microsoft.Cpp.Default.props” was not found
- [Solved] Unity Error: ‘BuildPipeline‘ does not contain a definition for ‘GetBuildTargetName‘
- [Solved] Unity packaged and exported apk error: Failed to load libmain.so’
- Error 1 error MSB3721: Command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe” -genco
- ROS Error: Could not import “pyqt“ bindings of qt_gui_cpp library
- [Solved] Unity Error: Assertion failed on expression: ‘IsMatrixValid(matrix)‘…
- [Solved] Unity Error: Got null handle from IDXGIResource::GetSharedHandle
- [Solved] configure: error: C++ preprocessor “/lib/cpp” fails sanity check
- How to Solve Opencv Error: CPP: 1557 error