android.app.ServiceConnectionLeaked: Activity com.mybet.wallet.MainActivity has leaked ServiceConnection com.mybet.wallet.MainActivity$1@1ca45be that was originally bound here

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by BinqiangSun

It's because the service you bind with activity is not stopped when that activity is destroyed. The service remains in the memory causes this exception. To solve this call doBindService() in onCreate() and doUnbindService() in onDestroy()

Solutions on the web

via Stack Overflow by DannyGM16
, 9 months ago
Activity com.mybet.wallet.MainActivity has leaked ServiceConnection com.mybet.wallet.MainActivity$1@1ca45be that was originally bound here
via Stack Overflow by Harshit Kumar
, 1 year ago
Service com.google.android.gms.car.CarService has leaked ServiceConnection fmj@35e4d4a that was originally bound here
via evervolv.com by Unknown author, 1 year ago
Service com.google.android.gms.car.CarService has leaked ServiceConnection com.google.android.gms.car.hr@cd1b3df that was originally bound here
via Stack Overflow by hashim
, 1 year ago
Service com.google.android.gms.car.CarService has leaked ServiceConnection com.google.android.gms.car.hr@3bb3cd94 that was originally bound here
via Stack Overflow by GyeongUk Moon
, 1 year ago
Service com.google.android.gms.car.CarService has leaked ServiceConnection fmj@d6bf3b1 that was originally bound here
via androidcentral.com by Unknown author, 1 year ago
Service com.google.android.gms.car.CarService has leaked ServiceConnection com.google.android.gms.car.hr@32abece that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.mybet.wallet.MainActivity has leaked ServiceConnection com.mybet.wallet.MainActivity$1@1ca45be that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1336)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1231)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1450)
at android.app.ContextImpl.bindService(ContextImpl.java:1422)
at android.content.ContextWrapper.bindService(ContextWrapper.java:636)
at com.mybet.wallet.MainActivity.onCreate(MainActivity.java:111)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)

Users with the same issue

Once, 2 weeks ago
67 times, 1 month ago
25 times, 2 months ago
16 times, 2 months ago
18 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.