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

Schreibe einen Kommentar