Android Exception 12(has leaked ServiceConnection)

09-09 15:12:31.154: E/ActivityThread(18855): Activity com..xxx.xx.act.LoadingAct has leaked ServiceConnection com..xxx.xx.act.LoadingAct$2@42086478 that was originally bound here

09-09 15:12:31.154: E/ActivityThread(18855): android.app.ServiceConnectionLeaked: Activity com.xxx.xx.act.LoadingAct has leaked ServiceConnection com..xxx.xx.act.LoadingAct$2@42086478 that was originally bound here

09-09 15:12:31.154: E/ActivityThread(18855):     at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:977)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:871)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.app.ContextImpl.bindService(ContextImpl.java:1237)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.app.ContextImpl.bindService(ContextImpl.java:1229)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.content.ContextWrapper.bindService(ContextWrapper.java:394)

09-09 15:12:31.154: E/ActivityThread(18855):     at com.tongyan.changli.act.LoadingAct$12.onClick(LoadingAct.java:387)

09-09 15:12:31.154: E/ActivityThread(18855):     at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.os.Handler.dispatchMessage(Handler.java:99)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.os.Looper.loop(Looper.java:137)

09-09 15:12:31.154: E/ActivityThread(18855):     at android.app.ActivityThread.main(ActivityThread.java:4815)

09-09 15:12:31.154: E/ActivityThread(18855):     at java.lang.reflect.Method.invokeNative(Native Method)

09-09 15:12:31.154: E/ActivityThread(18855):     at java.lang.reflect.Method.invoke(Method.java:511)

09-09 15:12:31.154: E/ActivityThread(18855):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)

09-09 15:12:31.154: E/ActivityThread(18855):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)

09-09 15:12:31.154: E/ActivityThread(18855):     at dalvik.system.NativeStart.main(Native Method)

错误原因:AndroidManifest.xml Service的文件包名出现与实际的不一致

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。