簡體   English   中英

Android Studio <Failed to resolve: com.android.support:appcompat-v7:28.0.0>

[英]Android Studio <Failed to resolve: com.android.support:appcompat-v7:28.0.0>

我無法修復此問題未能解決:com.android.support:appcompat-v7:28.0.0

任何人都可以解決這個問題? 我的問題

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
}

首先,檢查您的build.gradle(Project),是否如下圖所示

在此處輸入圖片說明

其次,檢查您的build.gradle(Module:app),是否如下圖所示 在此處輸入圖片說明

請讓我知道,您的問題是否已解決

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM