android_id icon indicating copy to clipboard operation
android_id copied to clipboard

MissingPluginException(No implementation found for method getId on channel android_id)

Open tushartripathi opened this issue 2 years ago • 4 comments

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>

tushartripathi avatar Sep 25 '23 14:09 tushartripathi

Hi @tushartripathi!

Thanks for opening this issue.

On which platform are you experiencing this exception?

nohli avatar Sep 25 '23 16:09 nohli

I guess it was because calling getId() on a platform different than Android.

This is fixed in the latest version.

nohli avatar Oct 09 '23 11:10 nohli

image Can see this issue even on Android.

vipinnegi90 avatar Feb 17 '24 03:02 vipinnegi90

Please provide a minimal, reproducible example for debugging 🙏🏽

Please also try the latest version: 0.4.0

nohli avatar Jun 04 '24 20:06 nohli

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

joaovirgilicw avatar Jul 24 '25 16:07 joaovirgilicw

I have the same problem on Android

amd110 avatar Jul 25 '25 01:07 amd110