I am currently trying to use the Quandl4J library in Android Studio. Unfortunately, when I try to compile my programme, there is a Gradle build error with the error message :
" Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug"
that is caused by :
" Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:"
In addition, an Android issue pops out:
"Program type already present: javax.inject.Inject
Message{kind=ERROR, text=Program type already present: javax.inject.Inject, sources=[Unknown source file], tool name=Optional.of(D8)}"
Hello all,
I am currently trying to use the Quandl4J library in Android Studio. Unfortunately, when I try to compile my programme, there is a Gradle build error with the error message :
" Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug"
that is caused by :
" Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:"
In addition, an Android issue pops out:
"Program type already present: javax.inject.Inject Message{kind=ERROR, text=Program type already present: javax.inject.Inject, sources=[Unknown source file], tool name=Optional.of(D8)}"
I have actually followed the instructions from this [link] (https://stackoverflow.com/questions/46053902/dex-error-on-android-studio-3-0-beta4) but to no avail.
Has anybody encountered a similar error? If so, what is their solution for this? Thank you very much for your help!