I use cocos2dx-2.1.2 create a lua project,after I finish my code work I want to create an android project for this project.
When I compile the android project,the error comes out.
jni/hellocpp/main.cpp: In function 'void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv*, jobject, jint, jint)': jni/hellocpp/main.cpp:23:10: error: 'CCDirector' has not been declared jni/hellocpp/main.cpp:25:9: error: 'CCEGLView' was not declared in this scope jni/hellocpp/main.cpp:25:20: error: 'view' was not declared in this scope jni/hellocpp/main.cpp:25:27: error: 'CCEGLView' is not a class or namespace jni/hellocpp/main.cpp:33:20: error: 'ccDrawInit' was not declared in this scope jni/hellocpp/main.cpp:34:34: error: 'ccGLInvalidateStateCache' was not declared in this scope jni/hellocpp/main.cpp:36:9: error: 'CCShaderCache' has not been declared jni/hellocpp/main.cpp:37:9: error: 'CCTextureCache' has not been declared jni/hellocpp/main.cpp:38:9: error: 'CCNotificationCenter' has not been declared jni/hellocpp/main.cpp:38:76: error: 'EVNET_COME_TO_FOREGROUND' was not declared in this scope jni/hellocpp/main.cpp:39:9: error: 'CCDirector' has not been declared make: *** [obj/local/armeabi/objs/game_shared/hellocpp/main.o] Error 1
I check the path in Andoid.mk, there is nothing wrong.Could anyone help me.