supul dulanka
supul dulanka

Reputation: 23

When i try to build my android studio project: Gives me below error

Here I have attached the screenshot Please see that, This error occurs after I add firebase to my app.

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;

Upvotes: 1

Views: 89

Answers (1)

vasanth
vasanth

Reputation: 715

I have faced the same issues while working with Google Play Services, to fix this kindly follow the below method.

Just parse the below code from:

compile 'com.google.android.gms:play-services:9.4.0'

To:

compile ('com.google.android.gms:play-services:9.4.0') {
    exclude module: 'support-v4'
}

Upvotes: 1

Related Questions