更改包名后服务不注册

时间:2015-06-26 11:26:43

标签: android android-studio

我更改包名后发生错误,如。

我正在尝试更改包名称。包名称将更改但是服务未注册时出错。我的应用程序无法正常运行。应用程序无法破坏发射器活动。

06-26 16:45:19.806  27366-27366/my.instaupdate.otr.app.im E/AndroidRuntime﹕ FATAL EXCEPTION: main
        Process: my.instaupdate.otr.app.im, PID: 27366
        java.lang.RuntimeException: Unable to destroy activity {my.instaupdate.otr.app.im/my.instaupdate.otr.app.im.app.WelcomeActivity}: java.lang.IllegalArgumentException: Service not registered: my.instaupdate.cacheword.CacheWordActivityHandler@14403580
                at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3758)
                at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3776)
                at android.app.ActivityThread.access$1400(ActivityThread.java:148)
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1346)
                at android.os.Handler.dispatchMessage(Handler.java:102)
                at android.os.Looper.loop(Looper.java:135)
                at android.app.ActivityThread.main(ActivityThread.java:5312)
                at java.lang.reflect.Method.invoke(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:372)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
         Caused by: java.lang.IllegalArgumentException: Service not registered: my.instaupdate.cacheword.CacheWordActivityHandler@14403580
                at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1033)
                at android.app.ContextImpl.unbindService(ContextImpl.java:1936)
                at android.content.ContextWrapper.unbindService(ContextWrapper.java:550)
                at my.instaupdate.otr.app.im.app.WelcomeActivity.onDestroy(WelcomeActivity.java:231)
                at android.app.Activity.performDestroy(Activity.java:6132)
                at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1163)
                at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3745)
                at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3776)
                at android.app.ActivityThread.access$1400(ActivityThread.java:148)
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1346)
                at android.os.Handler.dispatchMessage(Handler.java:102)
                at android.os.Looper.loop(Looper.java:135)
                at android.app.ActivityThread.main(ActivityThread.java:5312)
                at java.lang.reflect.Method.invoke(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:372)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)

关于什么???

的这个错误

0 个答案:

没有答案