NativeRenderingPlugin
NativeRenderingPlugin copied to clipboard
Update Android ndk-build usage
Update Android ndk-build config & how to use it.
With Unity 6 on macOS and targeting Android, Unity tries to include its own libc++_shared.so
What went wrong:
Execution failed for task ':unityLibrary:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
> 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
- /Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build/intermediates/merged_jni_libs/release/mergeReleaseJniLibFolders/out/arm64-v8a/libc++_shared.so
- /Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build/intermediates/cxx/RelWithDebInfo/345a4s64/obj/arm64-v8a/libc++_shared.so
I cannot reproduce when using Unity 6 on Windows targeting Android for some reason. Picking one libc++_shared.so is possible but risky.