I am using two different libraries, but they both have same base(webrtc). Because of which there is a duplicity in many classes. Therefore, android studio is not letting me create an apk.
I tried below solution which isn't working.
dexOptions {
preDexLibraries = false
}
Also, I have multiDexEnabled true in build.gradle file.
Can anyone please provide a solution to the issue?
EDIT: Here is the error that I am getting.
AGPBI: {"kind":"error","text":"\tat java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)","sources":[{}]}
:app:transformDexArchiveWithDexMergerForBonumHealthDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithDexMergerForBonumHealthDebug'.
> com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lorg/webrtc/NetworkMonitor;