Sorry for the silly question but after installing Android Studio, while creating a new project it was giving me following error:
Error:Failed to resolve: com.android.support:support-core-ui:27.1.1
I added this dependencies in my gradle dependency file as follows:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
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:27.+'
compile "com.android.support:support-core-ui:27.1.1"
testCompile 'junit:junit:4.12'
}
But still it is showing the same error. Please suggest me some solution to rectify this problem.
Build.gradle for My project:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}