Nach der Aktualisierung von Android Studio, habe ich versucht, ein Projekt zu starten, aber es zeigt mir einen Fehler wegen einiger Abhängigkeit Fehler, sagen, dass es einen Konflikt mit Abhängigkeit 'com.android.support:support-annotations ".Android: Gradle Build fehlgeschlagen
Das ist mein build.gradle Datei
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '24.0.3'
defaultConfig {
applicationId "com.example.abdelnacer.parentooandroid"
minSdkVersion 21
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.parse:parsefacebookutils-v4-android:[email protected]'
compile 'com.parse:parseui-widget-android:0.0.1'
compile 'com.facebook.android:facebook-android-sdk:4.+'
testCompile 'org.mockito:mockito-core:1.+'
testCompile 'org.robolectric:robolectric:3.2-SNAPSHOT'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
androidTestCompile 'com.android.support:support-annotations:24.2.1'
compile 'com.google.guava:guava:19.0'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.wefika:flowlayout:0.4.1'
compile 'com.facebook.shimmer:shimmer:[email protected]'
compile 'com.github.armcha:LuseenBottomNavigation:1.8.2'
}
und der Fehler
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (25.0.0) and test app (24.2.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'.
> Dependency Error. See console for details.
ich wirklich kann nicht herausfinden, was das Problem ist?
Wenn Sie auf den Fehler schauen, hat es: "Siehe http://g.co/androidstudio/app-test-app-conflict für Details." Wenn Sie die im Fehler erwähnte Seite besuchen, erhalten Sie eine Erklärung des Problems. Und wenn Sie auf den wichtigsten Suchmaschinen auf "com.android.support:support-annotations conflict" suchen, werden Sie Antworten [wie diese] (http://stackoverflow.com/a/33318482/115145) finden. – CommonsWare
eine Ihrer Bibliotheken importiert die Version 25.0.0. Führen Sie './ Gradlew-Abhängigkeiten 'aus, um zu sehen, welcher in der Abhängigkeitsbaumstruktur – njzk2