的Cocos2D-X的Andr​​oid无法分辨coscos2dx库 [英] Cocos2d-x android can't resolved coscos2dx library

查看:120
本文介绍了的Cocos2D-X的Andr​​oid无法分辨coscos2dx库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始用MacOSX的X code4.5。
我试图教程。

i am starting by macOSX xcode4.5 .
i tried to tutorials.

使用cocos2dx,它完成的MacOSX的建设,
发生在Android的源的问题。

Using cocos2dx, it completes building of macOSX,
The problem occurred in android sources.

cocos2dxActivity的任何内容进行了说明。
所以,org.cocos2dx.lib不是其他文件。

No contents of cocos2dxActivity are described.
so, org.cocos2dx.lib is not other files.

Android是没有运行。

android is not running.

我使用NDK-R8。 会有什么问题吗?

i use ndk-r8. What will be a problem?

推荐答案

在cocos2d-X 2.0.3 ...的Cocos2D-X的Java库文件被认为是一个不同的项目只 因此,该项目导入日食

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

让我们使简单

  1. 首次进口来自这条道路在Eclipse项目 - 的cocos2d-2.0-X-2.0.3 / cocos2dx /平台/安卓/ Java的

您会看到libcocos2dx项目在Eclipse中...保持这个项目开放的始终,否则你的项目将报错图书馆的语法

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

  1. 运行创造-的Andr​​oid项目

  1. Run create-android-project

现在导入已创建和项目直接运行(如果你知道isLibrary的概念,那么这就是他们是如何保持它现在..)

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 ..)

另外的附加信息,从偏食只运行build-native.sh, 右键单击项目 - > C / C ++编译 取消选中使用默认构建命令 并添加下面的bash $ {workspace_loc:/ YourProjName} /build_native.sh NDK_DEBUG = 1 V = 1

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-X的Andr​​oid无法分辨coscos2dx库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆