Android studio – Faild to resolve:com.android.support:design:26.0.1错误

我有一个错误叫:
"Failed to resolve: com.android.support:design:26.0.1".

我的android studio版本是3.0 beta 1.

我的gradle文件如下:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsversion "26.0.1"
defaultConfig {
    applicationId "hojune.example"
    minSdkVersion 17
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
    }
}
}

dependencies {
compile filetree(include: ['*.jar'],dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
    exclude group: 'com.android.support',module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:26.0.1'
}

我想把“设计”放到我的项目中,但我不能这样做.我该怎么做?

解决方法

尝试改变
buildToolsversion "26.0.0"

com.android.support:design:26.0.0

或者不要更改为bulidToolsversion更改依赖项

compile 'com.android.support:design:26.0.0-alpha1'

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...