Cocos2d-x android can't resolved coscos2dx library

Cocos2d-x的配置可以参考:http://www.cnblogs.com/TerryBlog/archive/2012/10/27/2742501.html


Cocos2d-x android can't resolved coscos2dx library是在创建cocos2d-x andrid项目的时候出现的bug,stackoverflow的解决方法:

In cocos2d-x 2.0.3 ...Cocos2d-x Lib java files has been considered as a different project only So import that project in the eclipse

Lets make it Simple

  1. First Import the project in eclipse from this path - cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/java

You will see libcocos2dx project in eclipse ...Keep this project open always otherwise your projects will give error on the syntax of library

  1. Run create-android-project

  2. Now Import the project which you have created and just Run (If you know the concept of isLibrary then that's how they are maintaining it now ..)

Also additional information to run build-native.sh from eclipse only , Right Click Project ->C/C++ Build Uncheck Use Default Build COmmand and add following bash ${workspace_loc:/YourProjName}/build_native.sh NDK_DEBUG=1 V=1

Good Luck ..If any question please feel free to ask

就是先把 cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/java里面的项目加载进来,然后就可以了。

之后右击项目运行,在手机上就可以看到cocos的启动画面了。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值