Ich verwende 'com.android.support:support-v4:23.3.0'
in meinem build.gradle
, aber wenn ich externe Bibliotheken zu erkunden, sehe ich zwei Versionen von support-v4-Bibliothek (23.3.0 & 24.0.0). Wie kann ich herausfinden, welche Abhängigkeit die Bibliothek "support-v4: 24.0.0" verwendet? Wie kann ich erzwingen, dass nur die Version 23.3.0 hinzugefügt wird?Android: Force Gradle, um nur eine Version einer Bibliothek
dies ist meine Abhängigkeitsliste in build.gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
compile ('com.nightonke:wowoviewpager:1.0.2') {
exclude group: 'com.android.support', module:'support-v4'
}
compile ('com.j256.ormlite:ormlite-android:5.0'){
exclude group: 'com.android.support', module:'support-v4'
}
compile files('libs/picasso-2.5.2.jar')
compile files('libs/easyandroidanimationslibrary-v0.5.jar')
compile files('libs/apache-httpcomponents-httpclient.jar')
compile files('libs/apache-httpcomponents-httpcore.jar')
compile 'co.ronash.android:pushe-base:1.2.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
compile('com.github.ozodrukh:CircularReveal:[email protected]') {
transitive = true;
}
compile files('libs/btsdk.jar')
compile project(':zxing_barcode') // this project include the same version of support-v4 library
compile project(':cropper')// this project include the same version of support-v4 library
compile project(':taptargetview')// this project include the same version of support-v4 library
compile ('me.cheshmak:analytics:1.0.28'){
exclude group: 'com.android.support', module:'support-v4'
}
compile 'com.github.siyamed:android-shape-imageview:[email protected]'
compile ('com.github.rey5137:material:1.2.2'){
exclude group: 'com.android.support', module:'support-v4'
}
compile ('jp.wasabeef:recyclerview-animators:2.2.3'){
exclude group: 'com.android.support', module:'support-v4'
}
compile ('com.github.deano2390:MaterialShowcaseView:[email protected]'){
exclude group: 'com.android.support', module:'support-v4'
}
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.google.code.gson:gson:2.4'
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile('com.crashlytics.sdk.android:answers:[email protected]') {
transitive = true;
}
compile ('cat.ereza:customactivityoncrash:1.5.0'){
exclude group: 'com.android.support', module:'support-v4'
}
}
Ich benutze exclude group: 'com.android.support', module:'support-v4'
andere zu vermeiden Support-Bibliothek hinzugefügt, aber keine Änderung passiert ist.
Ich denke, das Projekt der Reinigung oder ungültig zu machen Cache und Neustart sollte Ihnen helfen. – Nabin
Nein, ich habe Builddateien gelöscht, das Projekt bereinigt und neu aufgebaut, aber es ist immer noch da. – Mneckoee