java - 尝试将 AndEngine 添加到我的示例项目时出错

标签 java android andengine

我已经从 Nicolas 的 Github 存储库中下载了最新的 AndEngine。使所有扩展在我的工作区上编译,一切正常。

创建了一个项目来开始测试引擎,但是每当我转到示例项目属性> Android 并尝试添加 AndEngine 或其任何扩展时,都会出现一个绿色的勾号...所以我在应用更改时接受,但是当我再次打开 Android 配置并查看库导入时,每次导入都有一个红色的“X”,就像失败一样。

这是屏幕截图:

enter image description here

有人遇到过这个问题吗?我该如何解决?

最佳答案

不用担心,多亏了这个论坛的一个人,它才成功

http://www.andengine.org/forums/tutorials/getting-started-with-andengine-t4858-180.html

引用他的话,确实有效:

Hey, look, I can contribute! (Sorry, I'm just excited to be able to add something here)

I had this same issue and resolved it by moving the libraries (AndEngine, etc.) into my Eclipse workspace.

For instance, I originally had all my AndEngine files in C:\Users[my user name]\git\AndEngine\ and encountered the same errors you describe. After some Googling, I found that I had to move the AndEngine library from .../git/ to my eclipse workspace, which is located at F:\android-workspace

So in the end my project's files were located at: F:\android-workspace[project_name]

And the AndEngine files were located at: F:\android-workspace\AndEngine

Be sure to re-link the library to your project after moving it. Also, I apologize for my verboseness, I just wanted to be clear.

关于java - 尝试将 AndEngine 添加到我的示例项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20876253/

相关文章:

android - ContentValues 放置方法

android - Andengine,让 Sprite 随机 move

android - AndEngine相机偏移和2个场景

java - 使用 Accept 作为 text/csv 和 content-Type 作为 application/json 对 REST API 进行 GET 调用。响应应该采用什么格式?

java - 执行搜索的最佳方式

java - 实体设计JPA

android - 和引擎一起 toast 提问?

java - 我无法通过 javamelody 监控 spring 应用程序

android - 如何保护 Android 应用程序中的可绘制资源

android - Android 中的清晰 View