I have an error called:
"Failed to resolve: com.android.support:design:26.0.1".
My android studio version is 3.0 beta 1.
My gradle file is as below:
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'
}
I want to put "design" to my project, but I can't do it. How can I do it?
Add this to your project level build.gradle
file:
repositories {
maven {
url "https://maven.google.com"
}
}
Just to clarify, this should be in the "allprojects" section of the gradle file (Thanks to @tys)
Try to Change
buildToolsVersion "26.0.0"
and
com.android.support:design:26.0.0
Or not change into bulidToolsVersion Change dependencies
compile 'com.android.support:design:26.0.0-alpha1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With