android studio打开项目,各种的错误,但是编译能过

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中出现就是如下,这么解决

这是个java代码的工具

android studio打开的是proj.android-studio项目

你的意思是,c++不在android studio中写吗?
写jni demo时,c++在android studio中用的挺好的,不会报错

请问怎么解决的。。