- Home /
build android app failed with 2018.1.2.f1 use IL2CPP
Build completed with a result of 'Failed'
CommandInvokationFailure: Failed to link 'libunity.so'.
D:/android-ndk-r13b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe @"Temp/StagingArea/strip/armeabi-v7a/libunity.rsp"
windows 7 x64
android sdk 16
ndk android-ndk-r13b
java version "1.8.0_144"
[err.txt][1]
This looks a bug on the Unity side. Can you submit a bug report via the Unity editor?
I'm seeing this in 2019.1.10f1
Windows 10 x64 android sdk 28.0.3 android ndk 19.1.5304403
CommandInvokationFailure: Failed to link 'libunity.so'. C:/Program Files/Unity/Hub/Editor/2019.1.10f1/Editor/Data/PlaybackEngines/AndroidPlayer/ND$$anonymous$$/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe @"Temp/StagingArea/strip/arm64-v8a/libunity.rsp"
stderr[ C:/Program Files/Unity/Hub/Editor/2019.1.10f1/Editor/Data/PlaybackEngines/AndroidPlayer/ND$$anonymous$$/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld.bfd.exe: cannot find -lgnustl_static clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) ] stdout[
] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) (at :0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) (at :0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, System.String error$$anonymous$$sg) (at :0) UnityEditor.Android.PostProcessor.Tasks.BuildSharedLibrary.Link (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidND$$anonymous$$Tools ndk, UnityEditor.Android.AndroidTargetDeviceType deviceType, System.Collections.Generic.IEnumerable`1[T] objects) (at :0) UnityEditor.Android.PostProcessor.Tasks.BuildSharedLibrary.Build (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidND$$anonymous$$Tools ndk, UnityEditor.Android.AndroidTargetDeviceType deviceType) (at :0) UnityEditor.Android.PostProcessor.Tasks.BuildSharedLibrary.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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 :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target,
Answer by motokiarai · Jan 25, 2019 at 08:06 AM
some
when strip engine code enabled in my case
same for me.. builds without stripping, but won't build with stripping low/med/high