我在新的Android studio版本中看到下面的错误,basic hello world也不是在gradle中构建的。云上的你也请帮帮忙。
这是我在新的android studio版本中得到的错误: :
我的gradle文件如下所示
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.打开文件显示详细信息
https://stackoverflow.com/questions/51733748
复制相似问题