无法解决:com.android.support:design:26.0.0



我无法在我的项目中包含材料设计库

这是我的build.gradle文件

apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.abdelmagied.myapplication"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0'
}

每次我同步时,它都会给我这个错误:

无法解决:com.android.support:design:26.0.0

确保您已从 SDK 管理器下载支持库(在 OSX 中:> Android> SDK 管理器的工具 --> SDK 工具选项卡(

最新更新