LoginSignup
0
0

flutterのAndroidアプリでGoogleログインする時の12500エラー

Last updated at Posted at 2024-05-17

12500エラーが止まらない

1ヶ月半程前からFlutterでAndroidアプリの作成の練習をしていました。
練習でGoogleログインを組み込もうとしたときに良くあるらしいエラー12500に遭いました。

デバッグログ
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null)

それで、調べると大体出てくるFirebaseAuthのSHA-1の登録やサポートメールの登録、build.gradleの設定を何回見てもおかしいところはない・・・。
というか、今回の場合は朝方まで組み込んでて一度動作したのを確認して寝て起きて再度動かそうとしたらこのエラーが出だしたので、そもそも間違っている気がしない・・・。

原因

気づけば何のことはないAndroidエミュレーターが原因だったというオチです。
コールドブートすればあっさり動きました・・・。

コールドブート
./emulator -avd Pixel_8_API_VanillaIceCream -dns-server 8.8.8.8 -no-snapshot-load

-no-snapshot-loadがコールドブート指定です。

スナップショットの高速起動も良し悪しですね・・・。
3時間くらい無駄にしましたorz

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0