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

我注意到PlusOneButton暂时无法使用了。我可以将其链接到Google Play商店的网址(即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+应用程序,或者在您的应用程序中使用Google Sign-In并探索其可能性,或者使用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/

10-11 22:45
查看更多