即使版本相同,所有 com.android.support 个库也必须使用完全相同的版本规范

All com.android.support libraries must use the exact same version specification even after versions are same

这是我的所有 gradle 代码

apply plugin: 'com.android.application'
android {
    compileSdkVersion 28
    buildToolsVersion '28.0.1'

    defaultConfig {
        applicationId "com.example.remindme"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:28.+'
    compile 'com.android.support:recyclerview-v7:28.+'
    compile 'com.getbase:floatingactionbutton:1.9.0'
    compile 'com.wdullaer:materialdatetimepicker:1.2.1'
    compile 'com.bignerdranch.android:recyclerview-multiselect:+'
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
}

但它仍然在这一行给我错误

compile 'com.android.support:appcompat-v7:28.+'

我不知道现在出了什么问题,现在有任何解决问题的提示

您使用的 SDK 版本为 28,请从 28 构建您的 SDK 版本。

步数:

  1. 关闭当前项目。
  2. 点击 "Looking for updates"
  3. 开始更新。

更新完成后,转到设置并将您的 gradle 设置为离线,请记住您的 gradle 也应该更新。

谢谢,希望对你有所帮助。