Nicht in der Lage zu kompilieren meinem android-Projekt
Wenn ich versuche zu kompilieren meinem android-Projekt iam immer folgende Fehlermeldung.
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
Hier ist mein Gradle-Datei
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'
}
kann jemand mir helfen dieses Problem zu beheben danke.
Es konnte nicht finden, dass AppCompat und Recyclerview Bibliotheken. Tun Sie Sie installiert haben. Stellen Sie sicher, dass Sie installiert haben, die gleichen Versionen, wie Sie sagen, in Ihrer Datei. Sie können installieren Sie die neueste version von SDK-Manager die 23.0.1
InformationsquelleAutor Sathya Baman | 2015-09-19
Du musst angemeldet sein, um einen Kommentar abzugeben.
Es geschieht, weil das die 21.0.1 für die Unterstützung Bibliotheken nicht vorhanden.
Können Sie in
build.gradle
eine von diesen:Die gleiche überlegung gilt auch für die
com.android.support:recyclerview-v7
InformationsquelleAutor Gabriele Mariotti
Ich Stand vor ähnlichen Problem und installierten android SDK build-tools -v23.0.1 und bezeichnet Android setup guide https://facebook.github.io/react-native/docs/android-setup.html#content
konnte Sie aber nicht finden "Android-support-repository",für die neueste version von SDK-manager die option geändert wird, um "Lokale maven-repository-support-Bibliotheken".
InformationsquelleAutor Aquib Vadsaria
Ich denke, die
buildToolsVersion "23.0.0 rc2"
Linie das problem verursacht.ändern
buildToolsVersion "21.0.1"
oder versuchen
und
und ja, was sharj gesagt hat ist auch richtig, vielleicht fehlt die build-tools
InformationsquelleAutor penta