android.app.ServiceConnectionLeaked: Activity com.example.mi.parkenamberg.ParkActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@afdadc70 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 GitHub by SPoelloth
, 10 months ago
Activity com.example.mi.parkenamberg.ParkActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@afdadc70 that was originally bound here
via Stack Overflow by Mad Hatter
, 1 year ago
Activity com.madhatter.nat.pronounce.MainActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@28a467b that was originally bound here
via Stack Overflow by Tharindu Irashana
, 1 year ago
Activity com.rts.dcmote.dcmote.Lunch has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@4e0792 that was originally bound here
via Stack Overflow by Anand Kulkarni
, 9 months ago
Activity org.cocos2dx.javascript.AppActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@df3ec64 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 com.example.mi.parkenamberg.ParkActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@afdadc70 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:979)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:873)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1561)
at android.app.ContextImpl.bindService(ContextImpl.java:1544)
at android.content.ContextWrapper.bindService(ContextWrapper.java:517)
at android.speech.tts.TextToSpeech.connectToEngine(TextToSpeech.java:687)
at android.speech.tts.TextToSpeech.initTts(TextToSpeech.java:657)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:610)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:584)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:568)
at com.example.mi.parkenamberg.ParkActivity.onCreate(ParkActivity.java:105)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

Users with the same issue

2 times, 3 days ago
Once, 3 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.