payu-intrepos / payumoney-new-sample-app

New Sample App For PayUmoney and PnP SKD integration
40 stars 37 forks source link

unable to merge dex #20

Closed patelhari closed 4 years ago

patelhari commented 6 years ago
1. Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
2. Error:com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
3. Error:com.android.dex.DexException: Multiple dex files define Lcom/android/volley/VolleyError;
Poras05 commented 4 years ago

@Rahul-Hooda i am facing the same issue with 1.6.0 but 1.1.0 is fine what is the solution to this.

Rahul-Hooda commented 4 years ago

@Poras05 - PnP SDK also uses Volley library internally for network calls. Manifest merger error is caused when your app also uses some version of volley. You can try with below code -

implementation ('com.payumoney.sdkui:plug-n-play:1.6.0'){
    exclude group: 'com.android.volley'
}