Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst; #723

Open
skokon opened this issue Aug 7, 2018 · 2 comments
Open

Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst; #723

skokon opened this issue Aug 7, 2018 · 2 comments

Comments

@skokon
Copy link

skokon commented Aug 7, 2018

Hello im trying to build my android project and im getting this error when i build APK for android

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst;

Error:com.android.dex.DexException: Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst;

Error:Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.

com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst;

it works on iOS but it won't work on android

@quy1403
Copy link

quy1403 commented Sep 25, 2018

+1

@verna1228
Copy link

In my case, I solve with the following steps.

Open MainApplication.java
I found there are duplicate new RNFetchBlobPackage(), I delete one of the new RNFetchBlobPackage() here.

Then also check for the app bundle dependencies, avoid duplicate compile project(':react-native-fetch-blob')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants