Vansuita Jr. Vansuita Jr. - 1 year ago 284
Android Question

Multiple dex files define Lcom/google/android/gms/internal/zzrx;

I'm creating an Shopify Android App using their api. My app also use Google firebase to do the sign-ins. this is my dependencies.

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile ''
compile 'com.shopify.mobilebuysdk:buy:2.0.2'
compile ''
compile ''

When I try to build the app I'm getting this error:

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. java.util.concurrent.ExecutionException: Multiple dex files define Lcom/google/android/gms/internal/zzrx;

I tried to add this on my build.gradle(app):

defaultConfig {
multiDexEnabled true

So then a got this:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. duplicate entry: com/google/android/gms/internal/zzrx.class

What can I do to use both libraries in the same project?

Answer Source


I Just solved my problem with this lines:

configurations {
    all*.exclude group: '', module: 'play-services-wallet'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download