Error:(42, 13) Failed to resolve: com.android.support:appcompat-v7:26.0.1 -


i tried changing sdk version , everything, no luck seems error wants stay.

when app: compact 25.0.1 says change newer version , tried changing occurs new error.

and newer version of app: compact v7 26.0.1

apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compilesdkversion 26 buildtoolsversion "25.0.2" defaultconfig { applicationid "com.example.jithendra.kotlinexample" minsdkversion 15 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'  }     }  sourcesets {     main.java.srcdirs += 'src/main/kotlin' }       }  buildscript { ext.kotlin_version = '1.1.4' repositories { jcenter()     mavencentral() } dependencies {     classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"     classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" } }   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:26.0.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' testcompile 'junit:junit:4.12' compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" compile "org.jetbrains.anko:anko-commons:0.10.0" compile (//anko dependencies         'org.jetbrains.anko:anko-sdk15:0.8.3', //sdk19,21,23 available         'org.jetbrains.anko:anko-appcompat-v7:0.8.3' //for appcompact-v7 bindings )  } repositories { mavencentral()  } 

click on link error

here android studio asks maven library dependency. open project level gradle , add following inside:

allprojects{     repositories { }  } 

part (in case don't have create 1 above):

maven {     url "https://maven.google.com" } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -