2016-12-08 1 views
1

이것은 내 프로젝트 build.gradle 파일입니다. 언제든지 android studio에서 프로젝트를 실행할 때 중복 항목 : 안드로이드/지원/V4/폴더의 유틸리티/MapCollections $ ArrayIterator.class 오류

apply plugin: 'com.android.application' 
android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.3' 
    defaultConfig { 
     applicationId "com.aitsolution.bizitapp.bizit" 
     minSdkVersion 16 
     targetSdkVersion 23 
     versionCode 14 
     versionName "1.13" 
     multiDexEnabled = true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
     dexOptions { 
      javaMaxHeapSize "3g" 
     } 
    } 
    lintOptions { 
     checkReleaseBuilds false 
     abortOnError false 
    } 
} 
dependencies { 
// compile fileTree(include: ['*.jar'], dir: 'libs') 
// testCompile 'junit:junit:4.12' 
    compile files('libs/linkedin-j-android.jar') 
    compile files('libs/MobileOcrEngine.jar') 
    compile files('libs/signpost-core-1.2.1.1.jar') 
    compile files('libs/twitter4j-core-3.0.5.jar') 
    compile files('libs/ksoap2_2.6.0.jar') 
    compile 'com.android.support:appcompat-v7:23.1.1' 
    compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:recyclerview-v7:+' 
    compile 'com.google.android.gms:play-services:9.0.0' 
    compile 'com.google.android.gms:play-services-appindexing:9.0.0' 
    compile 'com.android.support:cardview-v7:23.3.+' 
    compile 'com.github.bumptech.glide:glide:3.6.1' 
    compile 'com.google.code.gson:gson:2.4' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.edmodo:cropper:1.0.1' 
} 
+0

lib 폴더에 v4 지원 jar 파일이 있습니까? – Raghavendra

+0

그는 lib 디렉토리의 모든 항아리를로드하지 않습니다. 따라서 v4 지원 jar를 사용하면 어떤 영향도주지 않습니다. – fluffyBatman

답변

0

내가 페이스 북 SDK가 V4 지원 라이브러리와 함께 제공됩니다 생각은을 제외하고보십시오.

compile ('com.facebook.android:facebook-android-sdk:4.6.0') { 
    exclude module: 'support-v4' 
}