Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Failed assertion: line 22 pos 14: 'url != null': is not true. #12

Closed
daniele777 opened this issue May 3, 2020 · 3 comments
Closed

Failed assertion: line 22 pos 14: 'url != null': is not true. #12

daniele777 opened this issue May 3, 2020 · 3 comments

Comments

@daniele777
Copy link

daniele777 commented May 3, 2020

help i have this error ...

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building FirstScreen(dirty):
'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 22 pos 14: 'url != null': is not true.

@mayurvpatil
Copy link

Fixed this issue after few try,

Make sure you provide SHA1 certificate even if it's marked as optional on firebase console and update your both build.gradle files as instructed in step 3 ( Add firebase SDK ) or step 7 in article. This two thing fixed this issue for me.

also

Make sure you follow Medium article and don't miss a single step.

I'm new to flutter but debugged this issue in detailed and it looks like google is not sending a proper responce to your request (or null reponse) because so some missconfiguration, and assert methods are just an validation to prevent null pointer kind of exception.

@mosesweb
Copy link

mosesweb commented Aug 5, 2020

Also had this problem but got it working after cleaning and restarting Android Studio to reload the SHA1 google json file after I've entered it to the Firebase authentication.

Next up I faced a similar problem that email was null too. Took me a while to understand that I've been using multiple providers for my account, and that the email was found on another element of the providerData List property of the current user.

@sbis04
Copy link
Owner

sbis04 commented Sep 6, 2020

Closing this assuming the issue is fixed.

@sbis04 sbis04 closed this as completed Sep 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants