java - 创建 App Engine 后端时找不到 gcm.jar 错误 => 建议安装已弃用的库

标签 java android google-app-engine android-studio

使用 Android Developer Studio,我尝试从菜单中为现有的 Android 项目创建 App Engine 后端:

Tools => Google Cloud Tools => Generate App Engine Backend

错误信息是:

Could not find the gcm.jar. Please install the Android SDK Extra : 'Google Cloud Messaging for Android Library' using the Android SDK Manager.

Error Screenshot

在 Android SDK 管理器中,该库被标记为“已弃用”。那么安装/使用什么才是正确的呢?

最佳答案

“Google Play Services”似乎已经取代了 Google Cloud Messaging,并改为使用:http://developer.android.com/google/gcm/gs.html .也就是说,我安装了已弃用的版本也是为了让应用程序运行。

步骤:

  1. 工具 => Android => Android SDK 管理器
  2. 从列表底部选择“Google Play 服务”
  3. 安装包...

引用:http://github.com/phonegap-build/PushPlugin/issues/41

关于java - 创建 App Engine 后端时找不到 gcm.jar 错误 => 建议安装已弃用的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18967976/

相关文章:

python - GAE中如何处理不同类别的用户?

google-app-engine - 不使用 App Engine 的原因

google-app-engine - 阿普塔纳 : Exclude files when deploying a project to App Engine

java - Android Junit 测试卡在 "Launching: Creating source locator..."

java - 许多嵌入式属性引用相同的 Embeddable 类

java - Spring ScriptUtils : with MySql causes tests to freeze forever

java - 解析文本行并添加到 MySQL

android - CollapsingToolbarLayout 在 android 中将 NestedScrollView 向下推

android - 更改首选项(设置)后,显示设置的文本不会更新

java - 使用数据绑定(bind)从编辑文本中获取字符串值