Could not resolve com.android.support:appcompat-v7:28.0.3-alpha1.
解决办法:
1.
打开本项目的build.gradle
修改依赖版本号为+
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.*.*.application"
minSdkVersion 22
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(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:+'
}
2.联网 去除setting-build-gradle的offline work选项 联网自动下载依赖 可更换下载源至国内的速度快点