This error could be due to a few reasons. Try the following troubleshooting steps:
- Make sure your device/emulator is completely updated.
- Try running on device. Sometimes the emulator glitches out and it must be restarted. Overall, testing on device is more reliable.
- Restart your device/emulator.
- Make sure you're logged in with a Google account.
- If you're running on an emulator, make sure it has Google Play installed.