温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Cocos2d-x android can't resolved coscos2dx library

发布时间:2020-06-12 02:58:56 来源:网络 阅读:350 作者:拳四郎 栏目:游戏开发

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的启动画面了。

Cocos2d-x android can't resolved coscos2dx library

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI