android studio打开cocos2dx项目,各种的错误,无法写代码,但是编译能过。
比如出现 this file is not part of the project.please include it in the appropriate build file
但是android.mk文件里明明有加
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
(call import-add-path,(LOCAL_PATH)/…/…/…/cocos2d)
(call import-add-path,(LOCAL_PATH)/…/…/…/cocos2d/external)
(call import-add-path,(LOCAL_PATH)/…/…/…/cocos2d/cocos)
(call import-add-path,(LOCAL_PATH)/…/…/…/cocos2d/cocos/audio/include)
LOCAL_MODULE := MyGame_shared
LOCAL_MODULE_FILENAME := libMyGame
LOCAL_SRC_FILES := hellocpp/main.cpp
hellocpp/Java_org_cocos2dx_cpp_CocosHelp.cpp
…/…/…/Classes/AppDelegate.cpp
…/…/…/Classes/HelloWorldScene.cpp
…/…/…/Classes/PlayRocketScene.cpp
…/…/…/Classes/RainScene.cpp
…/…/…/Classes/SnowScene.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/…/Classes
android studio中出现就是如下,这么解决