【问题标题】:Google Play services: Error while building ionic android appGoogle Play 服务:构建 ionic android 应用程序时出错
【发布时间】:2016-11-01 11:06:28
【问题描述】:

我正在创建新的离子应用程序。在这个应用程序中,我添加了Google Play services 包修订号。 31. 还添加了包到我的应用程序cordova plugin add cordova-plugin-googleplus。这用于 google plus 身份验证。
所以现在我在使用ionic build android 构建android 应用程序时遇到了问题。它给了我以下错误,

但是当我删除包 cordova plugin remove cordova-plugin-googleplus 并构建应用程序时,它会成功。

是不是因为googleplus包的修订号?

【问题讨论】:

    标签: android cordova ionic-framework google-play-services android-sdk-tools


    【解决方案1】:

    找到了解决办法,
    我已将以下软件包降级到以前的版本。

    请记住,如果您使用 windows 来反映 android sdk 中的更改,则需要重新启动机器。

    【讨论】:

      【解决方案2】:

      问题是因为您的 Android SDK 没有安装 Google Play Services。因此,它无法编译具有 Google Play 服务参考的应用程序(Android SDK 没有这些参考)。转到您的 Android SDK 管理器并为您的 android API 版本安装 Google Play 服务。 PS 你可以在控制台中看到这些错误。

      【讨论】:

      • 不,我有。正如我上面提到的,我已经安装了 Google Play 服务版本号。 31. 如果我没记错的话,它会在 Android SDK 管理器的“Extras”下列出。
      猜你喜欢
      • 2014-09-23
      • 2014-09-12
      • 1970-01-01
      • 2016-03-14
      • 2018-08-12
      • 2019-11-03
      • 1970-01-01
      • 2019-03-20
      • 2016-09-21
      相关资源
      最近更新 更多