你好,游客 登录 注册 搜索
背景:
阅读新闻

Cocos2d-x android can't resolved coscos2dx library

[日期:2012-12-02] 来源:Linux社区  作者:拳四郎 [字体:大 中 小]

Cocos2d-x的配置可以参考:http://www.linuxidc.com/Linux/2012-10/73099.htm

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

  • 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

  • Run create-android-project
  • 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的启动画面了。

Cocos2d-x android can't resolved coscos2dx library

linux
相关资讯       cocos2d-x  Cocos2d  Cocos2d 教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款