时间:2020-10-10 22:23:40 | 栏目:Android代码 | 点击:次
错误为:
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)