DEV Community

Cover image for Flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException
TAIO Sylvain
TAIO Sylvain

Posted on

Flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException

Flutter : How to solve [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null)

Go to android/build.gradle
and replace

classpath 'com.google.gms:google-services:4.4.0'
Enter fullscreen mode Exit fullscreen mode

to

classpath 'com.google.gms:google-services:4.3.15'
Enter fullscreen mode Exit fullscreen mode

**
Don't forget to leave a comment if you enjoyed**

Top comments (0)