google calendar libraries conflict with Evernote SDK on Android

112 views Asked by At

I have created a Google Calendar sample application from following Android Quickstart. The app runs well here. Then I want to integrate with Evernote SDk.

Here are my build.gradle dependences

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.google.android.gms:play-services:7.3.0'
    compile 'com.google.api-client:google-api-client:1.20.0'
    compile 'com.google.api-client:google-api-client-android:1.20.0'
    compile 'com.google.api-client:google-api-client-gson:1.20.0'
    compile 'com.google.apis:google-api-services-calendar:v3-rev125-1.20.0'
    compile 'com.evernote:android-sdk:2.0.0-RC2'
}

When I try to run the app this error appears:

Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2

Any Help ?

1

There are 1 answers

0
user3578386 On BEST ANSWER

I solved this exception by applying "Multidex"