i get this error when i try to build for android an i am lost how to fix it. i realy hope someone have an idea what i do to get rid of this problem.
Failed running C:\Program Files\Unity\Hub\Editor\2018.2.16f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.2.16f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.2.16f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/lridza/AppData/Local/Android/Sdk/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.2.16f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript.dll" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --assembly="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Managed\System.dll" --generatedcppdir="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\Il2Cpp\il2cppOutput"
stdout:
Building libil2cpp.so with AndroidToolChain
Output directory: C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: C:\Users\lridza\Documents\dfl1_ios91\Alinea\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
ObjectFiles: 602 of which compiled: 602
Time Compile: 34023 milliseconds Bulk_mscorlib_9.cpp
Time Compile: 31993 milliseconds Il2CppAttributes.cpp
Time Compile: 30606 milliseconds Bulk_Assembly-CSharp_3.cpp
Time Compile: 19714 milliseconds Bulk_Assembly-CSharp_0.cpp
Time Compile: 18630 milliseconds Bulk_System_3.cpp
Time Compile: 18444 milliseconds Bulk_mscorlib_5.cpp
Time Compile: 18123 milliseconds Bulk_System_8.cpp
Time Compile: 17538 milliseconds Bulk_System.Xml_0.cpp
Time Compile: 17381 milliseconds Bulk_mscorlib_7.cpp
Time Compile: 17316 milliseconds Bulk_Assembly-CSharp_11.cpp
Total compilation time: 391450 milliseconds.
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b oolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\lridza\AppData\Local\Temp mp12FB.tmp" -o "C:\Users\lridza\Documents\dfl1_ios91\Alinea\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04C0E0F14D3EB22D012A2C1B832E2E09\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b oolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04C0E0F14D3EB22D012A2C1B832E2E09\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
C:/Users/lridza/Documents/dfl1_ios91/Alinea/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/547CB9652F389AE97AB40F71BF682ACC.o: In function `ScreenshotManager_saveToGallery_m3533703665':
C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:4240: undefined reference to `saveToGallery'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
ved Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
ved Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
ved il2cpp.Program.DoRun(String[] args)
ved il2cpp.Program.Run(String[] args)
ved il2cpp.Program.Main(String[] args)
stderr:
Ikke-afviklet undtagelse: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b oolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\lridza\AppData\Local\Temp mp12FB.tmp" -o "C:\Users\lridza\Documents\dfl1_ios91\Alinea\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04C0E0F14D3EB22D012A2C1B832E2E09\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b oolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\lridza\AppData\Local\Android\Sdk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\lridza\Documents\dfl1_ios91\Alinea\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04C0E0F14D3EB22D012A2C1B832E2E09\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
C:/Users/lridza/Documents/dfl1_ios91/Alinea/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/547CB9652F389AE97AB40F71BF682ACC.o: In function `ScreenshotManager_saveToGallery_m3533703665':
C:\Users\lridza\Documents\dfl1_ios91\Alinea\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:4240: undefined reference to `saveToGallery'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
ved Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
ved Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
ved il2cpp.Program.DoRun(String[] args)
ved il2cpp.Program.Run(String[] args)
ved il2cpp.Program.Main(String[] args)
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:380)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)