Android:无法在 Eclipse 中成功导入 BaseGameUtils

标签 android eclipse google-play

我想在我的 android 项目中使用游戏 api。

然后我按照 Google 网站中描述的说明开始 (部分 - 设置您的游戏项目)来自以下链接。 https://developers.google.com/games/services/android/init

我已经从这个链接下载了库 BaseGameUtils https://github.com/playgameservices/android-samples

然后我按照说明将其作为项目导入。

但是,我得到的是一个名为 ma​​in 但不是 BaseGameUtils 的项目。

然后我无法在我的 android 项目中调用它的 BaseGameActivity

我该如何解决?

最佳答案

同样的问题用不同的方式解决。

我已经导入了 BaseGameUtils 项目,但也无法引用它。 如果您右键单击您刚刚导入的 BaseGameUtils 项目,然后转到 properties > android 并检查 “is library” 你是能够在您的应用项目中引用它。

关于Android:无法在 Eclipse 中成功导入 BaseGameUtils,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23948558/

相关文章:

javascript - 如何调整 Javascript 元素的大小以适应其容器窗口

安卓:Tabstyle

安卓 OCR : Cannot resolve error for getBoundingBox

android - 如何修复 Play 商店拒绝应用程序因为启动器图标大小

javascript - Android webview加载本地javascript

java - 在我的应用程序中捕获谷歌聊天发送的传出数据包

java - 如何为您的 Android 应用程序添加更新通知,然后用户将被引导至 Google Playstore?

android - 我如何在 Google Play 上显示我的应用程序的对话框?

java - android.view.InflateException : Binary XML file line #52: Error inflating class <unknown>

java - 在Eclipse项目中找不到build.gradle