0
我试过所有的排除,但我总是得到dexindexoverflow异常。每当我使用它时,它总会给出相同的错误。 除了facebook之外,我还希望通过fabric - twitter整合数字。 有没有什么办法可以找到我的整个项目的依赖项重复。我无法在Gradle控制台上看到任何东西。无法整合Facebook SDK安卓与gradle
这里是我的build.gradle文件
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
/** Must exclude exported support jars from dependencies, or get dex duplicate class error.
* we're
**/
configurations {
// all*.exclude group: 'com.google.android.gms', module: 'play- services'
// all*.exclude group: 'com.android.support', module: 'support-v7'
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
mavenCentral()
}
android {
signingConfigs {
}
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.example.company"
minSdkVersion 12
targetSdkVersion 21
versionCode 207
versionName "3.2.0.7"
renderscriptTargetApi 18
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations.all {
exclude group: 'com.google.android', module: 'support-v4'
// other configurations
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.google.android.gms:play-services:6.5.+'
compile 'com.nispok:snackbar:2.7.5'
//compile 'com.google.android.gms:play-services-maps:6.5.+'
compile files('libs/disklrucache-2.0.1.jar')
compile files('libs/gcm.jar')
compile files('libs/gson-2.2.4.jar')
compile files('libs/smack.jar')
compile files('libs/volley.jar')
compile files('libs/ActiveAndroid.jar')
compile files('libs/AF-Android-SDK-v2.3.1.18.jar')
compile 'com.google.maps.android:android-maps-utils:0.3+'
compile 'com.nhaarman.supertooltips:library:3.0.+'
compile 'com.github.castorflex.smoothprogressbar:library:[email protected]'
compile 'com.github.dmytrodanylyk.android-process-button:library:1.0.0'
compile 'com.quinny898.library.persistentsearch:library:1.0.0-SNAPSHOT'
compile 'fr.avianey:facebook-android-api:[email protected]'
// compile 'com.appyvet:materialrangebar:1.0'
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile 'com.github.shell-software:fab:1.1.2'
compile project(':parallaxviewpager')
compile project(':sliderlibrary')
// compile 'com.facebook.android:facebook-android-sdk:4.1.0'
}
task buildAndOtaRelease(dependsOn: ['build', 'crashlyticsUploadDistributionRelease'])