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选项 联网自动下载依赖 可更换下载源至国内的速度快点
————————————————
版权声明:本文为CSDN博主「追风筝的程序员」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hai1124948893/article/details/85247737