BackupAgent fails after package rename
I have an app, that uses backup feature. This is line from my manifest:
android:backupAgent="my.package.backup.BackupAgent"
It works fine in current version. But now I want to move the same BackupAgent
to another package my.package.other.backup.package
.
When I install new version to new device, it still works fine. But when I try to install new version over old one - it causes backup agent to crash with error:
java.lang.ClassNotFoundException: my.package.backup.BackupAgent in loader dalvik.system.PathClassLoader
Why Android looks for BackupAgent
in old package?
我仍然不知道如何解决这个问题,但最后我只是在老地方创建了空课,这扩大了新课程。
链接地址: http://www.djcxy.com/p/25486.html上一篇: 什么是“android:allowBackup”?
下一篇: 重命名包后,BackupAgent失败