Android Studio <失败至=“” resolve:=“” com.android.support:appcompat-v7:28.0.0 =“”>

时间:2018-11-08 13:38:24

标签: java android android-studio

我无法解决此问题无法解决:com.android.support:appcompat-v7:28.0.0

有人可以解决此问题吗? My problem

buid.gradle

   // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        maven {
            url 'https://maven.google.com/'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        maven {
            url 'https://maven.google.com/'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

1 个答案:

答案 0 :(得分:0)

首先,检查您的build.gradle(Project),是否看起来像下面一样

enter image description here

第二,检查您的build.gradle(Module:app),是否如下图所示 enter image description here

请告诉我您的问题是否已解决