ndk编译报错: fatal error: string: No such file or directory

fatal error: string: No such file or directory 

fatal error: vector: No such file or directory 

fatal error: map: No such file or directory 

fatal error: thread: No such file or directory 

 

遇到以上一些问题 网上的解决方法是在 Application.mk文件内加入

APP_STL := gnustl_shared

但是我这个是已经加好了的依旧报错 

找了一下午才发现 原来是这里多了个斜杠

FILE_LIST := $(wildcard $(LOCAL_PATH)/../../Classes/plugin/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/plugin/android/*.cpp)

LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
					$(LOCAL_PATH)/../../Classes/libMessage/ggpp \
					$(LOCAL_PATH)/../../Classes/libMessage/ \        ←多个斜杠
					$(LOCAL_PATH)/../../Classes/Guide/ \             ←多个斜杠

之后再次遇到此问题  发现是"\ "后有空格  把空格删了就好了

你可能感兴趣的:(android)