Android: Unable to instantiate activity / ClassNotFoundException

前端 未结 30 3190
粉色の甜心
粉色の甜心 2020-11-27 13:46

I recently published an app to the market and I\'m now getting an error by some user, the app presumably crashes right when it starts. Unfortunately I can\'t contact him dir

30条回答
  •  甜味超标
    2020-11-27 14:29

    I just got the same error (Unable to instantiate activity...) with Opera Mini. Opera Mini was on SD card (moved to SD card in the app setting). The error seems to be related to the fact that I swapped the SD card yesterday. The device was shutdown, I copied all data from the old card over to the new card (with cp -a) and then inserted the new card and started the device again. Everything seems to work as expected, but I see now that all apps on the SD card crashes with the same error.

    • Device: HTC Desire HD (Android 2.2)
    • Old SDHC card: SanDisk 8GB class 4
    • New SDHC card: Kingston 16GB class 4

    So I would say that this is a an Android bug and not something that can be fixed by app developers.

    Also see: http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html

    It has always been the case that when you swap SD cards on an Android device, if you physically copy the contents of the old card to the new one, the system will use the data on the new card as if nothing had changed. This is also true of apps which have been installed on the SD card."

    This seems to be incorrect.

提交回复
热议问题