解决BaseGameActivity [英] Resolve BaseGameActivity

查看:558
本文介绍了解决BaseGameActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽可能多的人,我试图按照无功而返本教程。 简单的错误是:

as many people I'm trying to follow this tutorial without success. The simple error is:

The import com.google.example.games.basegameutils.BaseGameActivity cannot be resolved

BaseGameUtils设置为库,并将其导入谷歌播放-服务没有错误。 我的测试项目进口BaseGameUtils库没有错误,事实上,如果我尝试导入通用库我没有错误

BaseGameUtils is set as library and it imports the google-play-services without errors. My test project imports the BaseGameUtils library without errors, infact if I try to import the generic library I have no error

import com.google.example.games.basegameutils.*; -> no error!

在文件夹

workspace\BaseGameUtils\gen\com\google\example\games\basegameutils

有只有两个文件: BuildConfig.java R.java 。 该BaseGameActivity.java文件是present仅在文件夹

there are only two files: BuildConfig.java and R.java. The BaseGameActivity.java file is present only in the folder

workspace\BaseGameUtils\java\com\google\example\games\basegameutils

与其他两个文件 GameHelper.java GameHelperUtils.java

我怎样才能解决这个问题呢?一个简单的清洁 - >建立不起作用。 谢谢

How can I resolve the problem? A simple Clean -> Build has no effect. Thank you

:编辑:

推荐答案

您需要使用 BaseGameUtils 位于 eclipse_compat /库/ BaseGameUtils BasicSamples /库/ BaseGameUtils> 。因为 eclipse_compat 目录没有在更多的可用github上网站,我分享了它这里

You need to use BaseGameUtils located at eclipse_compat/libraries/BaseGameUtils instead of BasicSamples/libraries/BaseGameUtils. Since the eclipse_compat directory is no more available in the github site, I've shared it here.

这篇关于解决BaseGameActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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