首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法解析‘:app@debug/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01

无法解析‘:app@debug/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01
EN

Stack Overflow用户
提问于 2018-08-08 03:03:35
回答 15查看 40.2K关注 0票数 19

我在新的Android studio版本中看到下面的错误,basic hello world也不是在gradle中构建的。云上的你也请帮帮忙。

这是我在新的android studio版本中得到的错误: :

我的gradle文件如下所示

代码语言:javascript
复制
apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "payments.com.java.payments"
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

这是我正在获取的日志

无法解析‘:app@debug/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01。打开文件显示详细信息无法解析‘:app@debug/compileClasspath’的依赖项:无法解析com.android.support.constraint:constraint-layout:1.1.2.打开文件显示详细信息

无法解析‘:app@debugAndroidTest/compileClasspath’的依赖项:无法解析com.android.support.test:runner:1.0.2。打开文件显示详细信息

无法解析‘:app@debugAndroidTest/compileClasspath’的依赖项:无法解析com.android.support.test.espresso:espresso-core:3.0.2.打开文件显示详细信息

无法解析‘:app@debugAndroidTest/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01。打开文件显示详细信息

无法解析‘:app@debugAndroidTest/compileClasspath’的依赖项:无法解析com.android.support.constraint:constraint-layout:1.1.2.打开文件显示详细信息

无法解析‘:app@debugUnitTest/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01。打开文件显示详细信息

无法解析“:app@debugUnitTest/compileClasspath”的依赖项:无法解析com.android.support.constraint:constraint-layout:1.1.2.打开文件显示详细信息

无法解析以下各项的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01。打开文件显示详细信息

无法解析“:app@release/compileClasspath”的依赖项:无法解析com.android.support.constraint:constraint-layout:1.1.2.打开文件显示详细信息

无法解析‘:app@releaseUnitTest/compileClasspath’的依赖项:无法解析com.android.support:appcompat-v7:28.0.0-rc01。打开文件显示详细信息

无法解析‘:app@releaseUnitTest/compileClasspath’的依赖项:无法解析com.android.support.constraint:constraint-layout:1.1.2.打开文件显示详细信息

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51733748

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档