【发布时间】:2014-08-13 20:56:56
【问题描述】:
我正在关注this tutorial,但我仍然无法使用 BaseGameActivity。
我通过 SDK 管理器安装了库,并将其添加到我的 build.gradle 中
dependencies {
compile 'com.google.android.gms:play-services:5.2.08'
}
我还编辑了 AndroidManifest 然后我使用了“使用 Gradle 文件同步项目”。我没有错误,但我不能有任何错误
import gms.common.api.*;
import com.google.example.games.basegameutils.BaseGameActivity;
-> 无法解析符号 'gms' 和无法解析符号 'example'
现在我被卡住了。
【问题讨论】:
-
你的项目是从命令行构建的吗?
-
不,我在 Android Studio 中完成所有工作。
-
您需要从Google Play Services的SDK下载中单独下载BaseGameUtils。
标签: java android android-studio google-play-services android-gradle-plugin