MissingPluginException(No implementation found for method getId on channel android_id)
code
const _androidIdPlugin = AndroidId(); serialNumber = await _androidIdPlugin.getId(); print(serialNumber);
error
E/flutter (24501): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getId on channel android_id) E/flutter (24501): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7) E/flutter (24501): <asynchronous suspension> E/flutter (24501): #1 _AddEmailState.getFlutterId (package:zaperon_finlock/pages/AddEmail.dart:331:20) E/flutter (24501): <asynchronous suspension>
Hi @tushartripathi!
Thanks for opening this issue.
On which platform are you experiencing this exception?
I guess it was because calling getId() on a platform different than Android.
This is fixed in the latest version.
Can see this issue even on Android.
Please provide a minimal, reproducible example for debugging 🙏🏽
Please also try the latest version: 0.4.0
I'm experiencing the same issue in my project but I couldn't reproduce in an example app. At first I thought that the method channel name android_id could be conflicting with another package but even forking the project and updating it the issue still happens.
I still couldn't figure out what is going on but I'll be updating here when I find the reason
I have the same problem on Android