Voici le message complet du journal : Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.
Impossible de trouver com.Android.support:appcompat-v7:26.1.0. Recherché dans les emplacements suivants : file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/google/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/google/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/Android/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom file:/C:/Users/Anatoly/AppData/Local/Android/Sdk/extras/Android/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar file:/C:/Android/AndroidStudio/gradle/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom file:/C:/Android/AndroidStudio/gradle/m2repository/com/Android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar Requis par : projet :app
Mon gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip
Mon build.gradle du projet
buildscript {
repositories {
// Gradle 4.1 and higher include support for Google's Maven repo using
// the google() method. And you need to include this repo to download
// Android plugin 3.0.0 or higher.
google()
maven { url "https://maven.google.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
Mon build.gradle de l'application :
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "ru.foodrobot.test2"
minSdkVersion 10
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 {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}