试试这个
GoogleSignIn(
scopes: [
'email',
'https://www.googleapis.com/auth/userinfo.profile',
],
).signIn();
我之前也遇到了同样的问题,后来我只是升级了Google登录包(https://pub.dev/packages/google_sign_in),问题就解决了。
希望这些能够解决你的问题。
flutter clean
然后运行 flutter pub cache clean
接下来运行 flutter pub upgrade
这可能会解决您的问题。