YakupKalin
YakupKalin

Reputation: 61

Why am I getting an error message from Android NDK r11 while my project is built using Android NDK r16?

I have an Android project with a third party library (.so). Along with the third party .so file, I'm also providing the libc++_shared.so library that is needed along with the third party library.

After building the Android project and running it on an Android device (Android 6.x), I get this abort message:

[INFO] libc: /Volumes/Android/buildbot/out_dirs/aosp-ndk-r11-release/build/tmp/build-72234/build-libc++/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type

The problem here is that I don't have the Android NDK r11 configured within my system (MacOS). I downloaded and configured the Android NDK r16. I also can see during the build the configured NDK is used (path of my configured ANDROID_NDK within my .bash_profile).

This llvm-libc++ of r11 is not compatible with the third party .so library. Why am I getting the abort message from the NDK r11?

Upvotes: 0

Views: 1064

Answers (1)

YakupKalin
YakupKalin

Reputation: 61

To answer my own question. It seems that the Mobile Application Development Platform (Appcelerator Titanium) I'm using was injecting its own libc++_shared.so file during the app build phase. This is why my own libc++_shared.so file didn't get in the APK file. It was another file all along. And that file was from the Android NDK r11.

The file that is copied during the build phase is located within the Titanium SDK: sdk/android/native/libs/*/libc++_shared.so.

Upvotes: 1

Related Questions