无法解决:com.android.support:appcompat-v7:28.3.0

时间:2019-06-25 07:30:55

标签: android android-gradle

无法解决:com.android.support:appcompat-v7:28.3.0 显示在文件中 在“项目结构”对话框中显示

无法解决:com.android.support:cardview-v7:28.3.0 显示在文件中 在“项目结构”对话框中显示

尝试更改CompileSdkVersions,targetSdkVersions

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion '27.0.3'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.example.teknopc.myapplication"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }

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

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'
    implementation 'com.android.support:appcompat-v7:28.3.0'

    implementation('com.github.afollestad.material-dialogs:core:0.8.5.8@aar') { transitive = true }
    implementation('com.github.afollestad.material-dialogs:commons:0.8.5.8@aar')
    implementation 'com.github.navasmdc:MaterialDesign:1.+@aar'

    implementation 'com.melnykov:floatingactionbutton:1.3.0'
    implementation 'com.journeyapps:zxing-android-embedded:2.0.1@aar'
    implementation 'com.journeyapps:zxing-android-integration:2.0.1@aar'
    implementation 'com.google.zxing:core:3.0.1'
    implementation 'com.android.support:cardview-v7:28.3.0'

}

repositories {
    mavenCentral()

    maven {
        url "http://dl.bintray.com/journeyapps/maven"
    }
}

1 个答案:

答案 0 :(得分:2)

没有28.3.0版本的支持库。尝试使用com.android.support:appcompat-v7:28.0.0 com.android.support:cardview-v7:28.0.0

注意28.0.0是支持库中的最新更新。将来所有的更新都将在androidx库中。