1

I have a problem with SharedPreferences. Everything was working fine until I added Android SDK 2.x to Eclipse. Since then there seems to be an error with the SharedPreferences. The error shows up in LogCat:

W/Attempt to read preferences file /data/data/com.app.app/shared_prefs/com.app.app_preferences.xml without permision
E/Couldn't rename file /data/data/com.app.app/shared_prefs/com.app.app_preferences.xml to backup file /data/data/com.app.app/shared_prefs/com.app.app_preferences.xml.bak

I don't know the direct cause of this. This bug happens on the emulator and on the phone.

Thanks in advance.

4

1 回答 1

1

我遇到了同样的问题在测试时,我删除了应用程序并重新安装了新版本这个技巧对我有用

于 2013-01-18T07:01:15.220 回答