Kan*_*han 6 android android-preferences build.gradle
我想更新我的首选项摘要,在这里找到了一个名为SimpleSummaryProvider的东西。但就我而言,这是指找不到属性,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'
Run Code Online (Sandbox Code Playgroud)
我不知道我是否想念什么。我将不胜感激
app:useSimpleSummaryProvider是androidx.preference 1.1.0-alpha01根据AndroidX发行说明(app:useSimpleSummaryProvider在页面中搜索)新添加的。
因此,您需要迁移到AndroidX并更新到最新的androidx alpha版本。
| 归档时间: |
|
| 查看次数: |
978 次 |
| 最近记录: |