Impossible de compiler mon projet android
Lorsque j'essaie de compiler mon projet android iam obtenir l'erreur ci-dessous.
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.android.support:appcompat-v7:21.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar
file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom
file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar
file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom
file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar
Required by:
SriLankaTemples:app:unspecified
Could not find com.android.support:recyclerview-v7:21.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.jar
file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.pom
file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.jar
file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.pom
file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.jar
Required by:
SriLankaTemples:app:unspecified
Voici mon Gradle fichier
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "23.0.0 rc2"
defaultConfig {
applicationId "lk.lankahomes.baman.srilankatemples"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.1'
compile 'com.android.support:recyclerview-v7:21.0.1'
}
peut-on m'aider à résoudre ce merci.
- Il ne trouve pas de AppCompat et Recyclerview bibliothèques. Avez-vous avez installés. Assurez-vous que vous avez installé la même version que vous dites dans votre fichier. Vous pouvez installer la dernière version du SDK Manager qui est 23.0.1
Vous devez vous connecter pour publier un commentaire.
Cela se produit parce que le 21.0.1 pour les bibliothèques de prise en charge n'existe pas.
Vous pouvez utiliser dans
build.gradle
l'un de ces:La même considération est valable également pour le
com.android.support:recyclerview-v7
J'ai fait face à problème similaire et installé le SDK android outils de construction -v23.0.1 et visée Android guide d'installation https://facebook.github.io/react-native/docs/android-setup.html#content
mais ne pouvait pas trouver "le soutien Android référentiel",la dernière version du SDK manager - l'option est changé à "référentiel maven Local pour les bibliothèques de prise en charge".
Je pense que le
buildToolsVersion "23.0.0 rc2"
ligne est à l'origine du problème.changer de
buildToolsVersion "21.0.1"
ou essayer
et
et oui ce sharj a dit, c'est aussi correct, vous peut être pas les outils de construction