Skip to content

Conversation

@act262
Copy link

@act262 act262 commented Apr 4, 2023

Update Android ndk-build config & how to use it.

@mfkl
Copy link

mfkl commented Apr 14, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants