问题描述
嘿:)我试图将BaseGameUtils库添加到我的工作区,我使用本指南:的,我从这里下载:的的BaseGameUtils样本,但是当我尝试它使用Eclipse它导入给了我这么多的错误的东西像主,MainActivity而不是真正的BaseGameUtils,这里有什么问题?
Hey :) I am trying to add the BaseGameUtils library to my workspace, I am using this guide: https://developers.google.com/games/services/android/init , I have downloaded from here :https://developers.google.com/games/services/downloads/ The BaseGameUtils sample but when I am trying to import it using Eclipse it gives me so many wrong things like Main,MainActivity and not the real BaseGameUtils, what is wrong here?
推荐答案
您需要为了运行make_eclipse_compat的剧本,位于脚本/ make_eclipse_compat要能够导入所有使用eclipse这些项目(创建它们使用由默认的Android工作室)。
You need to run "make_eclipse_compat" script, located at Scripts/make_eclipse_compat in order to be able to import all of these projects using eclipse (they are created to use by Android-Studio by default).
一旦运行该脚本,一个名为新文件夹eclipse_compat将被创建。您需要导入位于该文件夹中的项目。因此,进口BaseGameUtils,将其标记为库并添加一个google_play_services作为库的依赖。
Once you have run the script, a new folder called "eclipse_compat" will be created. You need to import the projects located at THAT folder. So, import BaseGameUtils, mark it as library and add a google_play_services as a library dependence.
希望它能帮助
这篇关于BaseGameUtils导入使用的Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!