I am getting the following error on ndk-build clean
mo@mo-Toshiba ~/Workspace/AndroidApp/jni/android_programming_driver $ ndk-build clean Clean: driveradapter [armeabi] /bin/sh: 1: Syntax error: "(" unexpected make: *** [clean-driveradapter-armeabi] Error 2
Where is the NDK seeing this syntax erro?
This is a bug in ndk r8e.
How to fix it:
Edit the file $(ndk_dir)build/core/build-binary.mk
. Change the line
$(cleantarget): PRIVATE_CLEAN_FILES := ($(my)OBJS)
to
$(cleantarget): PRIVATE_CLEAN_FILES := $($(my)OBJS)
For me, that was on line #49.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With