Android Studio Compilation Issues
Android Studio Flamingo | 2022.2.1
Source code version v5.2.6
Bulid error:
[CXX1405] error when building with ndkBuild using /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/Android.mk: Build command failed.
Error while executing process /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-23 NDK_OUT=/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/obj NDK_LIBS_OUT=/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib -j8 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
rm -f /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/*
rm -f /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdbserver
rm -f /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdb.setup
mkdir -p /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a
echo [armeabi-v7a] "Gdbserver ": "[arm-linux-androideabi] /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdbserver"
install -p /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/prebuilt/android-arm/gdbserver/gdbserver /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdbserver
echo [armeabi-v7a] "Gdbsetup ": "/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdb.setup"
echo "set solib-search-path /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/obj/local/armeabi-v7a" > /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdb.setup
echo "directory /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/sources/android/support /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/sources/cxx-stl/llvm-libc++ /Users/Rock/Library/Android/sdk/ndk/21.4.7075529/sources/cxx-stl/llvm-libc++abi/include /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/libancillary /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/badvpn/lwip/src/include/ipv4 /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/badvpn/lwip/src/include/ipv6 /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/badvpn/lwip/custom" >> /Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/lib/armeabi-v7a/gdb.setup
fcntl(): Bad file descriptor
fcntl(): Bad file descriptor
fcntl(): Bad file descriptor
fcntl(): Bad file descriptor
make: *** No rule to make target '/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/src/main/jni/redsocks/base.c', needed by '/Users/Rock/shadowsocks/5.2.6/shadowsocks-android/core/build/intermediates/cxx/Debug/4x6i3n2d/obj/local/armeabi-v7a/objs-debug/redsocks/redsocks/base.o'. Stop.