How to fix “process is bad” error for an Android Widget?

前端 未结 14 947
太阳男子
太阳男子 2020-12-02 07:44

I have developed an Android Widget, and it was working fine. I added some extra functionality and pushed an update through the Android Market. Now people are complaining tha

14条回答
  •  生来不讨喜
    2020-12-02 08:44

    I hit a process is bad error on my HTC Sensation OS 2.3.4 after removing the INTERNET permission from my AndroidManifest.xml.

    W/ActivityManager( 253): Unable to launch app MY_DOMAIN.flashback/10132 for broadcast Intent { act=android.intent.action.PHONE_STATE flg=0x20000000 (has extras) }: process is bad

    I carefully tried lots of different workarounds, and I found the only way to fix was:

    • Uninstall the app through Settings -> Applications.
    • Remove the battery from the phone (using the Android "Power off" menu did not work).
    • Turn device on again.
    • Install the APK again using adb install .

    I want to take this opportunity to list what did NOT work for me (as there seems to a lot of FUD about how to fix this error):

    • Uninstall app, reboot using Android phone menu (press and hold on button and choose "Power off"), turn on again, reinstall.
    • Uninstall, use adb kill-server, then adb start-server, reinstall.
    • Uninstall, run adb shell then ps, this didn't show my app running at all.
    • Uninstall, do a clean build in Eclipse, reinstall.

    I wonder if the underlying problem was caused by my app getting smaller in size. I think it used to unpack to flashback-1.apk and flashback-2.apk on the device, whereas now it is only unpacking to a single flashback-1.apk.

提交回复
热议问题