android.app.ServiceConnectionLeaked: Activity *** has leaked ServiceConnection ***$1@e2e8d7d 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 Lurzim Sabahudin
, 1 year ago
Activity *** has leaked ServiceConnection ***$1@e2e8d7d that was originally bound here
via Stack Overflow by iamcxl
, 9 months ago
Activity com.iamcxl.webview.ActivityWebview0 has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@42c9eb88 that was originally bound here
via GitHub by gfkpth
, 1 year ago
Service com.google.android.gms.car.CarCallService has leaked ServiceConnection com.google.android.gms.car.dq@8cce860 that was originally bound here
via GitHub by jankzl
, 4 months ago
Activity org.kkdev.v2raygo.MainScreen has leaked ServiceConnection org.kkdev.v2raygo.MainScreen$1@425693c0 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
android.app.ServiceConnectionLeaked: Activity *** has leaked ServiceConnection ***$1@e2e8d7d that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1092)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
at android.app.ContextImpl.bindService(ContextImpl.java:1286)

Users with the same issue

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

Write tip

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