Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got error io.flutter.plugins.nfcmanager.TranslatorKt.getTagMap #187

Open
markHamilton34 opened this issue May 9, 2024 · 1 comment
Open

Comments

@markHamilton34
Copy link

markHamilton34 commented May 9, 2024

Hello,

I'm encountering the exception io.flutter.plugins.nfcmanager.TranslatorKt.getTagMap sometimes when reading an NFC card, in Google Play Console. The problem is that the application crashes when this error occurs. Although I added try-catch and runZonedGuarded to catch the error, it ignores it and the application still closes.

The error type is java.lang.RuntimeException and the stack trace is:

Exception java.lang.RuntimeException:
  at android.nfc.tech.MifareClassic.<init> (MifareClassic.java:200)
  at android.nfc.tech.MifareClassic.get (MifareClassic.java:138)
  at io.flutter.plugins.nfcmanager.TranslatorKt.getTagMap (Translator.kt)
  at io.flutter.plugins.nfcmanager.NfcManagerPlugin.handleNfcStartSession$lambda-3$lambda-2 (NfcManagerPlugin.java)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8893)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

How can I resolve this to prevent the error from occurring, or capture it so that the application does not close?

Thank you for your assistance.

@markHamilton34 markHamilton34 changed the title io.flutter.plugins.nfcmanager.TranslatorKt.getTagMap I got error io.flutter.plugins.nfcmanager.TranslatorKt.getTagMap May 9, 2024
@rohnsht
Copy link

rohnsht commented Jan 27, 2025

I am getting the same error. Is there any fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants