由于Google plus的人员API已被弃用,我无法找到任何解决方案来检索用户的生日附加信息。
我尝试了people:v1
库,但Android Studio显示错误消息:
找不到方法“com.google.apis:google-api-services-people:v1-rev63-1.22.0”
我的GMS版本= '11 .0.2'
google-services => 3.1.0
任何建议都赞赏!
答案 0 :(得分:0)
我认为您无法获得用户的生日,因为它是个人信息。如果您没有找到任何答案,请让用户给他一个生日并将其存储在SharedPreferences中。
如果可以帮助您,可以去观看this link。
希望得到你所需要的东西:)