You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
I'm working on a hybrid project which takes dependency on both react-native and conceal. In my gradle file I get the following error:
com.android.dex.DexException: Multiple dex files define Lcom/facebook/jni/DestructorThread;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:61)
... 1 more
It looks like its because both React Native and Conceal use the same fully qualified package name, any ideas on how to sort this out? Maybe rename the package name in this project?
@priyanknitk I'm facing a similar issue when building I get the following error:
Program type already present: com.facebook.jni.HybridData$Destructor
Message{kind=ERROR, text=Program type already present: com.facebook.jni.HybridData$Destructor, sources=[Unknown source file], tool name=Optional.of(D8)}
Did you face a similar problem? If yes how did you solve it? It seems that there was an issue #102 and was supposed to be fixed but it's still happening.
I'm working on a hybrid project which takes dependency on both react-native and conceal. In my gradle file I get the following error:
com.android.dex.DexException: Multiple dex files define Lcom/facebook/jni/DestructorThread;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:61)
... 1 more
It looks like its because both React Native and Conceal use the same fully qualified package name, any ideas on how to sort this out? Maybe rename the package name in this project?
https://github.com/facebook/conceal/blob/master/first-party/fbjni/java/com/facebook/jni/DestructorThread.java
https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/jni/DestructorThread.java
Infact the issue is with whole com/facebook/jni package.
Also soloder is added as dependency in React-native, but added as source code in conceal, so even that is creating problems
The text was updated successfully, but these errors were encountered: