首页 > 解决方案 > 为什么 androidx PreferenceDataStore 不工作?

问题描述

我尝试像本示例中那样使用 androidx PreferenceDataStore,但无论我尝试什么,它都不起作用。
它始终使用默认的共享首选项。
我怎样才能使它使用自定义数据存储?

标签: sharedpreferencesandroidx

解决方案


最后我修复了我的共享偏好,我不再需要 PreferenceDataStore。


推荐阅读