android - com.google.android.gms.plus.PlusOneButton 已弃用

标签 android google-play-services google-plus

https://developers.google.com/+/mobile/android/recommend

我注意到 PlusOneButton 现在有一段时间不工作了。我让它链接到 Google Play 商店 URL(即 https://play.google.com/store/apps/details?id=com.package.app )。

现在,当我将库版本升级到“com.google.android.gms:play-services-plus:12.0.0”或更高版本时,它表明 PlusOneButton 已被弃用。

PlusOneButton 有其他使用方法吗?还是 Google 完全删除了 PlusOneButton 功能?

最佳答案

在 Google 中搜索 PlusOneButton 导致 PlusOneButton网站,导致 Plus API Deprecation Notes .

我猜你只需要通过 Intent 或使用 Google Sign-In 将你的内容发送到 Google+ 应用程序在您的应用程序中探索它的可能性或使用 People API site 上建议的其他解决方案.

顺便说一句。这是实现自定义 Google 登录按钮的库:https://github.com/shobhitpuri/custom-google-signin-button根据最新指南。

关于android - com.google.android.gms.plus.PlusOneButton 已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49654942/

相关文章:

android - 手机触摸图标

android - 如何在程序运行时更改布局参数

Android:面临Errorjava.lang.ClassCastException

java - 在 Eclipse 中将非 Android 库项目添加到 Android 应用程序

android - com.google.android.gms :play-services-base compile and runtime collision in react native

android - Google plus for android 错误的访问 token

android - 如何在android中调试plus client(google+) "internal error"toast?

android - 找不到 com.google.android.gms :play-services:3. 1.59 3.2.25 4.0.30 4.1.32 4.2.40 4.2.42 4.3.23 4.4.52 5.0.77 5.0.89 5.2.08 6.1.11 6.1.71 6.5。 87

android - 版本冲突更新到播放服务 9.4.0 Android studio 2.2

c# - 如何使用 Google+ API 将人员添加到 Google+ 中的圈子?