我无法使用GoogleSignIn(com.google.android.gms.auth.api.signin.GoogleSignIn )和GoogleSignInClient(com.google.android.gms.auth.api.signin.GoogleSignInClient ),同时在Visual中使用Xamarin Android实现Google,而我可以访问应用程序中的其他类,例如:
com.google.android.gms.auth.api.signin.GoogleSignInAccount;
com.google.android.gms.auth.api.signin.GoogleSignInOptions;这是我下面的指南:https://developers.google.com/identity/sign-in/android/sign-in
根据惯例,我在Java和其他IDE中寻找类似的帖子,比如:Cannot resolve GoogleSignIn and GoogleSignInClient
但是,在我的例子中,这个问题发生在Visual的Xamarin Android中。
我试用了nuget Xamarin.GooglePlayServices.Identity的普通版和初版版本:

然后,我在GooglePlayServices的正式和初步版本中尝试了所有的坚果avaliable:

这是另一篇文章,它在我的例子中不起作用,因为Nutget版本是不可否认的:How do you integrate the new Google Sign-In on a Xamarin.Android app?
Xamarin.GooglePlayServices.Identity 29.0.0-beta1最后,我还在SDK管理器中配置了工具:

发布于 2022-12-04 11:25:30
安装软件包Xamarin.GooglePlayServices.Auth为我解决了问题。
https://stackoverflow.com/questions/56468727
复制相似问题