android.app.ServiceConnectionLeaked: Activity *** has leaked ServiceConnection ***$1@e2e8d7d that was originally bound here

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Getting "Activity <activityname> has leaked ServiceConnection" despite unbinding it in onDestroy or onPause

    Stack Overflow | 5 months ago | Lurzim Sabahudin
    android.app.ServiceConnectionLeaked: Activity *** has leaked ServiceConnection ***$1@e2e8d7d that was originally bound here
  2. 0

    Android App shuts down in testing with "ServiceConnectionLeaked"

    Stack Overflow | 10 months ago | auto
    android.app.ServiceConnectionLeaked: Activity com.example.authorName.appName.MainActivity has leaked ServiceConnection com.microsoft.band.f$xyzabc that was originally bound here

  1. MyInnos 4 times, last 10 months ago

Root Cause Analysis

  1. android.app.ServiceConnectionLeaked

    Activity *** has leaked ServiceConnection ***$1@e2e8d7d that was originally bound here

    at android.app.LoadedApk$ServiceDispatcher.<init>()
  2. Android Platform
    ContextImpl.bindService
    1. android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1092)
    2. android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
    3. android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
    4. android.app.ContextImpl.bindService(ContextImpl.java:1286)
    4 frames