有一个以前的JNI项目,之前都是好好的,但是突然编译不了了。提示报错如下:
Android NDK: ERROR:E:/Andriod/T4_VSIM_Trunk/T4_VSIM_Double_Ki/app/src/main/cpp//jni/Android.mk:atci: LOCAL_SRC_FILES points to a missing file Android NDK: Check that D:/NDK/android-ndk-r10c/sources/cxx-stl/system/libatci.so exists or that its path is correct D:/NDK/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop. Android NDK: ERROR:E:/Andriod/T4_VSIM_Trunk/T4_VSIM_Double_Ki/app/src/main/cpp//jni/Android.mk:atci: LOCAL_SRC_FILES points to a missing file Android NDK: Check that D:/NDK/android-ndk-r10c/sources/cxx-stl/system/libatci.so exists or that its path is correct D:/NDK/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
折腾了很久,一直没有找到原因,后面无意中发现,在Android.mk文件中:
KLOCAL_PATH := $(call my-dir)
啥时候在前面加了个“K”?
气炸。去掉后就可以正常编译了。
转载请注明:OpenMind » 一个JNI编译的问题