Skip to content

Update Android ndk-build usage#32

Open
act262 wants to merge 1 commit into
Unity-Technologies:masterfrom
act262:master
Open

Update Android ndk-build usage#32
act262 wants to merge 1 commit into
Unity-Technologies:masterfrom
act262:master

Conversation

@act262

@act262 act262 commented Apr 4, 2023

Copy link
Copy Markdown

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

@mfkl

mfkl commented Apr 14, 2025

Copy link
Copy Markdown

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