當運行NDK-build命令我碰到下面的錯誤:NDK找不到應用程序目錄
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
我Android.mk文件的內容:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := FRE
LOCAL_SRC_FILES := FlashRuntimeExtensions.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := NativeQCAR
LOCAL_SRC_FILES := main.c
LOCAL_SHARED_LIBRARIES := FRE
include $(BUILD_SHARED_LIBRARY)
添加以下行不幫助:
NDK_PROJECT_PATH = C:/Users/Wessel/Dropbox/workspace/eclipse/NativeQ
有同樣的問題只需要添加'export ANDROID_NDK_HOME = [我的NDK文件夾路徑]'到我的'.bash_profile'。之後,我可以從我的項目文件夾運行該命令。 – Yves