Mysterious ClassNotFoundException when Android system engage BackupAgent

坚强是说给别人听的谎言 提交于 2019-12-05 14:39:14

"/mnt/asec" prefix means that the phone is mounted to the pc and during that time when the app is trying to run or backupagent is trying to run (the app is not used already) it crashes. It is expected since the phone is mounted.

I am experiencing the same crash. One theory I'm wondering about is whether specifying a relative or absolute package name matters.

In my case I was using "android:name=" because my app does extend Application. So I was using: android.name="com.foo.bar.myapp" instead of: android.name=".myapp"

Seems like this shouldn't make a difference, but I'm wondering if the loader is using a different package name, like the one with the "-1" or "-2" suffixes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!