1.替换 App/libs/ CCInvocation.h .cpp
修改extentions Android.mk :去掉编译的CCInvocation.cpp一行
2.jni/Android.mk 修改
3.修改proj.android/build_native.sh copy资源
改用xcode工程的资源路径
4.修改lua Android.mk 去掉cocos2dx_support下文件编译
5. 修改自己的android.mk如下
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := game_shared LOCAL_MODULE_FILENAME := libgame LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../../../client/App/Goddess/Classes/AppDelegate.cpp \ ../../../../client/App/Goddess/Classes/MainGame.cpp \ ../../../../client/App/Goddess/Classes/toLua/GoddessLua.cpp \ ../../../../client/App/Goddess/Classes/toLua/ZgExtension.cpp \ ../../../../client/App/Goddess/Classes/network/ByteArray.cpp \ ../../../../client/App/Goddess/Classes/network/LuaHttp.cpp \ ../../../../client/App/Goddess/Classes/network/LuaSocket.cpp \ ../../../../client/App/Goddess/Classes/utils/GoddessUtils.cpp \ ../../../../client/App/Goddess/Classes/zgame/zgame.cpp \ ../../../../client/App/Goddess/Classes/zgame/ZgameAnimation.cpp \ ../../../../client/App/Goddess/Classes/zgame/luaCCBLayer.cpp \ ../../../../client/App/Goddess/Classes/zgame/LuaEditBox.cpp \ ../../../../client/App/Goddess/Classes/zgame/luaShadeCCBLayer.cpp \ ../../../../client/App/Goddess/Classes/zgame/TableView.cpp \ ../../../../client/App/Goddess/Classes/gameLoader/ProgressBar.cpp \ ../../../../client/App/Goddess/Classes/gameLoader/ResourceManager.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/CCLuaEngine.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/Cocos2dxLuaLoader.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/CCLuaStack.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/CCLuaValue.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/CCLuaBridge.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/LuaCocos2d.cpp \ ../../../../client/App/Goddess/libs/lua/cocos2dx_support/tolua_fix.c \ ../../../../client/App/Goddess/libs/extensions/GUI/CCControlExtension/CCInvocation.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes/toLua \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes/network \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes/utils \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes/zgame \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/Classes/gameLoader \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/libs/extensions/GUI/CCEditBox \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/libs/lua/cocos2dx_support \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../client/App/Goddess/libs/extensions/GUI/CCControlExtension LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_lua_static cocos_extension_static include $(BUILD_SHARED_LIBRARY) $(call import-module,cocos2dx) $(call import-module,CocosDenshion/android) $(call import-module,scripting/lua/proj.android) $(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl) $(call import-module,extensions)