I'm facing the same issue. I built v8 for Android, and when linking `libv8_monolith.a` in my app using NDK, there are link errors. The app and the other third-party libs use the NDK libc++ expecting the `std::__ndk1` namespace, but v8 is expecting `std::__1`.
I couldn't find a way to tell the v8 build system to use the libc++ from the NDK. Is there really no way to use the default libc++ from NDK when compiling v8?
In case the only solution is to use the libc++ version imposed by v8 everywhere (like Darin Dimitrov did), how is it done?
I'm couldn't find an appropriate lib to link in `buildtools/third_party/libc++`. I could find some `libc++_static.a` in the v8 source tree, but they are in `third_party/android_ndk/` and they use `std::__ndk1` (see [1] and [2]).
Any advice of how to correctly use v8 with NDK is appreciated.
I tried with both 7.3-lkgr and 8.3-lkgr v8 versions.
--------------------------
[1]: Searching for `libc++_static.a` in the v8 source tree
find . -name libc++_static.a
./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/i686-linux-android/libc++_static.a
./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_static.a
./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android/libc++_static.a
./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libc++_static.a
./third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_static.a
./third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a
./third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/x86_64/libc++_static.a
./third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/x86/libc++_static.a
[2]: checking the demangled names used in the static library
~/Android/Sdk/ndk/21.3.6528147/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --demangle third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/i686-linux-android/libc++_static.a | grep string
00000000 W std::__ndk1::__basic_string_common<true>::__throw_length_error() const
....