找不到任何匹配 com.google.android.gms:play-services-plus:+ 的版本
Could not find any version that matches com.google.android.gms:play-services-plus:+
尝试使用 EddyVerbruggen 的 cordova-plugin-googleplus 插件将登录与 google plus 集成到我的离子项目中。如果没有安装插件,项目构建正常但是一旦我安装插件构建失败并且我得到这个错误:
失败:构建失败,出现异常。
出了什么问题:
配置根项目时出现问题 'android'。
Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches com.google.android.gms:play-services-plus:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/
Required by:
:android:unspecified
Could not find any version that matches com.google.android.gms:play-services-identity:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/
Required by:
:android:unspecified
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
知道是什么导致了这个问题吗?
我终于想出了解决办法。您需要在 Android SDK 管理器中安装以下内容(在 'Extras' 文件夹下):
- Android 支持存储库
- Android 支持库
- Google 播放服务
- Google 存储库
我安装了它们并且对我有用。
josschne 对此的评论 link https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/77 提示我检查我是否安装了它们,在我的情况下我没有。
作为对上述答案的更新,这是您截至 2016 年 12 月所需的配置。
Android 支持库现已过时,但通过安装 Android 支持存储库、Google 播放服务和 Google 存储库,我可以构建成功地。我认为不需要 Google USB 驱动程序。
另一个提示是,如果您有 Android Studio 和 Visual Studio 的 Cordova 工具,我建议将它们指向同一个 sdk,因为 Visual Studio 在我安装我的时再次安装了 sdk科尔多瓦工具。
希望对您有所帮助!
尝试使用 EddyVerbruggen 的 cordova-plugin-googleplus 插件将登录与 google plus 集成到我的离子项目中。如果没有安装插件,项目构建正常但是一旦我安装插件构建失败并且我得到这个错误:
失败:构建失败,出现异常。
出了什么问题: 配置根项目时出现问题 'android'。
Could not resolve all dependencies for configuration ':_debugCompile'. Could not find any version that matches com.google.android.gms:play-services-plus:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/ Required by: :android:unspecified Could not find any version that matches com.google.android.gms:play-services-identity:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/ Required by: :android:unspecified
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
知道是什么导致了这个问题吗?
我终于想出了解决办法。您需要在 Android SDK 管理器中安装以下内容(在 'Extras' 文件夹下):
- Android 支持存储库
- Android 支持库
- Google 播放服务
- Google 存储库
我安装了它们并且对我有用。
josschne 对此的评论 link https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/77 提示我检查我是否安装了它们,在我的情况下我没有。
作为对上述答案的更新,这是您截至 2016 年 12 月所需的配置。
Android 支持库现已过时,但通过安装 Android 支持存储库、Google 播放服务和 Google 存储库,我可以构建成功地。我认为不需要 Google USB 驱动程序。
另一个提示是,如果您有 Android Studio 和 Visual Studio 的 Cordova 工具,我建议将它们指向同一个 sdk,因为 Visual Studio 在我安装我的时再次安装了 sdk科尔多瓦工具。
希望对您有所帮助!