【问题标题】:Support Library is not Compatible支持库不兼容
【发布时间】:2017-12-02 00:53:01
【问题描述】:

在 android studio 中,我想更新我的 SDK 版本。我已经更新到最高版本,当前最高版本是 25。但我支持的库是版本 26。

 compile 'com.android.support:appcompat-v7:25.3.1'
 compile 'com.android.support.constraint:constraint-layout:1.0.2'
 testCompile 'junit:junit:4.12'
 compile 'com.android.support:design:26.0.0-alpha1'
 compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'

我在这些行中遇到错误。请帮我解决这个问题。

【问题讨论】:

标签: java android


【解决方案1】:

如果你的库版本是 26,那么试试这个:

    implementation('com.android.support:appcompat-v7:26.1.0') {
        exclude group: 'com.android.support', module: 'animated-vector-drawable'
        exclude group: 'com.android.support', module: 'design'
        exclude group: 'com.android.support', module: 'recyclerview-v7'
    }
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation('com.android.support:design:26.1.0') {
        exclude group: 'com.android.support', module: 'animated-vector-drawable'
        exclude group: 'com.android.support', module: 'design'
        exclude group: 'com.android.support', module: 'recyclerview-v7'
    } 
    testCompile 'junit:junit:4.12'

【讨论】:

    猜你喜欢
    • 2023-04-06
    • 1970-01-01
    • 2012-06-07
    • 1970-01-01
    • 1970-01-01
    • 2021-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多