несколько файлов dex определяют Landroid / support / v4 /

Не могу скомпилировать проект, получаю следующую ошибку компиляции:

Ошибка: не удалось выполнить задачу ': myApp: dexDebug'.

com.android.ide.common.internal.LoggedErrorException: не удалось запустить команду: C: \ Program Files (x86) \ Android \ android-studio \ sdk \ build-tools \ 21.0.2 \ dx.bat --dex - Вывод C: \ Users \ Android Studio \ Android Studio \ myApp \ build \ промежуточные \ dex \ debug --input-list = C: \ Users \ myApp \ Загрузки \ Android Studio \ Android Studio \ myApp \ build \ промежуточные \ tmp \ dex \ debug \ libraryList.txt Код ошибки: 2 Вывод: НЕОЖИДАННОЕ ИСКЛЮЧЕНИЕ ВЕРХНЕГО УРОВНЯ: com.android.dex.DexException: Несколько файлов dex определяют Landroid / support / v4 / accessibilityservice / AccessibilityServiceInfoCompat $ AccessibilityServiceInfoVersionImpl; на com.android.dx.merge.DexMerger.readSortableTypes (DexMerger.java:596)

Конечно, этот код решит мою проблему

configurations { all*.exclude group: 'com.android.support', module: 'support-v4'

но к сожалению меня не удовлетворяет

dependencies {
    compile fileTree(include: '*.jar', dir: 'libs')

    compile 'com.android.support:support-v4:21.+'
    compile project(':PullToRefreshListFragment')
    compile project(':validator')
    compile project(':AndroidBootstrap')

    compile 'com.google.android.gms:play-services:6.+'
    compile 'com.android.support:appcompat-v7:21+'

    compile 'com.github.codechimp-org.apprater:library:1.0.+'
    compile 'com.sothree.slidinguppanel:library:+'
    compile 'me.grantland:autofittextview:0.2.+'
    compile 'io.realm:realm-android:0.71.0'

    compile ('com.loopj.android:android-async-http:1.4.6')
    {
        exclude group: 'com.google.android', module: 'support-v4'
    }

    compile('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {
        exclude group: 'com.google.android', module: 'support-v4'
    }

    compile ('io.nlopez.smartlocation:library:2.+')
    {
        exclude(group: 'com.google.android', module: 'gms:play-services')
    }
    configurations {
      // all*.exclude group: 'com.android.support', module: 'support-v4'

    }

как я могу скомпилировать проект?

Ответы на вопрос(1)

Ваш ответ на вопрос