Unhandled Exception: MissingPluginException(No implementation found for method getLocation on channel lyokone/location)

Viewed 3288

E/flutter (13237): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getLocation on channel lyokone/location)

I am using Location and Place picker plugin

Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/google_maps

3 Answers

This error occur when you add a package that hooks into the device like gps/camera/storage etc. without rebuilding the project.

To solve this, terminate the current running project from your IDE or if you're using flutter run in your terminal just press q. Run flutter clean and then re-run the project again.

I had this problem when the proxy debugger (Proxyman or Charles) was started on my computer.

This worked for me:

  1. Close proxy debugger
  2. flutter clean
  3. Restart IDE
  4. Build app

Try terminating your current running project and re-running. It will work. Refer this for more details.

Related