【问题标题】:Impossible to use BaseGameActivity in Android Studio无法在 Android Studio 中使用 BaseGameActivity
【发布时间】: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


【解决方案1】:

“您需要从Google Play Services的SDK下载中单独下载BaseGameUtils”

是的,事实上就是这样。谢谢。

【讨论】:

    猜你喜欢
    • 2017-12-04
    • 1970-01-01
    • 2018-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-05
    相关资源
    最近更新 更多