Preference cannot cast java.lang.boolean to String

后端 未结 4 1777
名媛妹妹
名媛妹妹 2021-01-12 17:02

I have the following Preference class:

public class AppPreferencesActivity extends PreferenceActivity {
    private SharedPreferences appPrefs;
    private S         


        
4条回答
  •  不要未来只要你来
    2021-01-12 17:19

    I was getting this error too, and couldn't figure out why. I think it's because I added a new preference and tried running the app again. I uninstalled the app, then ran it again with the new preferences, and it worked. Maybe it needed a full wipe to reset the sharedpreferences file.

提交回复
热议问题