我想更新我的首选项摘要,发现了一个名为SimpleSummaryProvider here的东西。但就我而言,这就是说找不到属性app:useSimpleSummaryProvider
,而在Java代码中,则是无法解析SummaryProvider类。我的应用程序级别构建Gradle依赖项为-
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:preference-v7:28.0.0'
我不知道我是否想念一些东西。 我将不胜感激
答案 0 :(得分:2)
app:useSimpleSummaryProvider
是根据AndroidX release notes(在页面中搜索androidx.preference 1.1.0-alpha01
)新添加到app:useSimpleSummaryProvider
中的。
因此,您需要迁移到AndroidX并更新到最新的androidx alpha版本。