错误为:
Android.mk文件
c++的调用方法为:
include $(CLEAR_VARS)
LOCAL_MODULE := TestNdk
LOCAL_CPP_EXTENSION :=com_ndk_test_JniClient.cpp
include $(BUILD_SHARED_LIBRARY)
c中的调用方法:
另一个使用变量的方法,一直成功运行
c++正确的mk文件:
include $(CLEAR_VARS)
LOCAL_MODULE := TestSm3
LS_CPP=$(subst $(1)/,,$(wildcard $(1)/*.cpp))
LOCAL_SRC_FILES := $(call LS_CPP,$(LOCAL_PATH))
include $(BUILD_SHARED_LIBRARY)
新闻热点
疑难解答
图片精选