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

java.lang.IllegalArgumentException: Service not registered #20

Open
indiluk opened this issue Aug 24, 2018 · 2 comments
Open

java.lang.IllegalArgumentException: Service not registered #20

indiluk opened this issue Aug 24, 2018 · 2 comments

Comments

@indiluk
Copy link

indiluk commented Aug 24, 2018

When using the flutter plugin barcode_scan our Android app crashes when closing the barcode scanner activity.

E/AndroidRuntime(12011): java.lang.RuntimeException: Unable to destroy activity {at.pluscity.PlusCity/com.apptreesoftware.barcodescan.BarcodeScannerActivity}: java.lang.IllegalArgumentException: Service not registered: org.altbeacon.beacon.BeaconManager$BeaconServiceConnection@2036956e E/AndroidRuntime(12011): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4891) E/AndroidRuntime(12011): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4909) E/AndroidRuntime(12011): at android.app.ActivityThread.access$1600(ActivityThread.java:218) E/AndroidRuntime(12011): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1788) E/AndroidRuntime(12011): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(12011): at android.os.Looper.loop(Looper.java:145) E/AndroidRuntime(12011): at android.app.ActivityThread.main(ActivityThread.java:6934) E/AndroidRuntime(12011): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(12011): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(12011): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) E/AndroidRuntime(12011): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) E/AndroidRuntime(12011): Caused by: java.lang.IllegalArgumentException: Service not registered: org.altbeacon.beacon.BeaconManager$BeaconServiceConnection@2036956e E/AndroidRuntime(12011): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1141) E/AndroidRuntime(12011): at android.app.ContextImpl.unbindService(ContextImpl.java:2254) E/AndroidRuntime(12011): at android.content.ContextWrapper.unbindService(ContextWrapper.java:572) E/AndroidRuntime(12011): at io.intheloup.beacons.logic.BeaconsClient.unbindService(BeaconsClient.kt:246) E/AndroidRuntime(12011): at org.altbeacon.beacon.BeaconManager.unbind(BeaconManager.java:453) E/AndroidRuntime(12011): at io.intheloup.beacons.logic.BeaconsClient.unbind(BeaconsClient.kt:61) E/AndroidRuntime(12011): at io.intheloup.beacons.BeaconsPlugin$1.onActivityDestroyed(BeaconsPlugin.kt:35) E/AndroidRuntime(12011): at android.app.Application.dispatchActivityDestroyed(Application.java:269) E/AndroidRuntime(12011): at android.app.Activity.onDestroy(Activity.java:1861) E/AndroidRuntime(12011): at android.app.Activity.performDestroy(Activity.java:6843) E/AndroidRuntime(12011): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1169) E/AndroidRuntime(12011): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4869) E/AndroidRuntime(12011): ... 10 more

@indiluk
Copy link
Author

indiluk commented Aug 24, 2018

This bug report is kind of related to the described issue AltBeacon/android-beacon-library#139

@vinceramcesoliveros
Copy link

please refer to other issues that have been discussed especially on google_sign_in. check the PR->files changed to modify the code or use someone else's forked beacon. I don't know if the author wants to continue this project.

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