2016-01-25 5 views
0

Я использую следующие зависимости в моем build.gradle:Получение Ошибка: Не удалось завершить выполнение задачи для ': приложение: dexDebug'

dependencies { 
/*compile fileTree(dir: 'libs', include: ['*.jar'])*/ 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:appcompat-v7:23.0.1' 
compile 'com.android.support:design:23.0.1' 
compile 'com.squareup.picasso:picasso:2.5.2' 
compile 'com.parse:parse-android:1.11.0' 
compile 'com.parse.bolts:bolts-android:1.3.0' 
compile 'com.google.android.gms:play-services:7.5.0' 
compile 'com.mixpanel.android:mixpanel-android:4.6.4' 
compile project(':intercom-sdk-base') 
compile project(':intercom-sdk-gcm') 
compile 'com.stripe:stripe-android:1.0.3' 

}

Я комментируемые линию compile fileTree(dir: 'libs', include: ['*.jar'])

Для избегать несоответствия, но все еще возникает следующая ошибка:

Error:Execution failed for task ':app:dexDebug'> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 2

+0

Можете ли вы отправить сообщение об ошибке. – Raghavendra

+1

вы можете использовать 'compile 'com.parse: parse-android: 1.12.0'' вместо' 1.11.0' –

+0

показать журнал ошибок и отправить 'build.gradle' total. –

ответ

1

Необходимо добавить multiDexEnabled true. Предоставлено идет к multiDexEnabled

The Android plugin for Gradle available in Android SDK Build Tools 21.1 and higher supports multidex as part of your build configuration. Make sure you update the Android SDK Build Tools tools and the Android Support Repository to the latest version using the SDK Manager before attempting to configure your app for multidex.

defaultConfig { 
    ... 
    minSdkVersion //Your Version 
    targetSdkVersion //Your Version 
    ... 

    // Enabling multidex support. 
    multiDexEnabled true 
} 

Вызывайте эту зависимостями

dependencies { 
    compile 'com.android.support:multidex:1.0.1' 
} 

Advice

Вы можете использовать compile 'com.parse:parse-android:1.12.0'

Затем Clean-Rebuild-Restart-Sync ваш проект. Надеюсь это поможет .

0

Это происходит довольно часто.

Просто «Очистите проект» -> «Перестройте проект», и вам будет хорошо идти.

+0

Я уже сделал .. не работает .. – user5716019

Смежные вопросы