omise / omise-android

Omise Android SDK
https://docs.opn.ooo
Other
50 stars 32 forks source link

Duplicate class error #203

Closed mykola-dev closed 1 year ago

mykola-dev commented 2 years ago

Just added a dependency to the gradle build script and tried to build. It conflicts with other lib we use.


   > Duplicate class a.a.a.a.a found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)
     Duplicate class a.a.a.a.b found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)
     Duplicate class a.a.a.a.c found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)
     Duplicate class a.a.a.a.e.a found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)
     Duplicate class a.a.a.a.e.b found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)
     Duplicate class a.a.a.a.e.c found in modules jetified-frames-android-3.0.1-runtime (com.github.checkout:frames-android:3.0.1) and jetified-threeds-android-1.0.0-alpha08-runtime (co.omise:threeds-android:1.0.0-alpha08)```
mykola-dev commented 2 years ago

this happens only on 4.0 3.2.1 does build fine

hoangtucmc commented 2 years ago

I think I have the same issue as well, bumping Omise version from 3.2.1 to 4.0 cause release build to fail.

Execution failed for task ':app:minifyPreProductionReleaseWithR8'.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
...
Caused by: com.android.tools.r8.internal.b: Type com.bumptech.glide.GeneratedAppGlideModuleImpl is defined multiple times
hoangtucmc commented 2 years ago

@nuxzero could you please take a look

phuctranopn commented 1 year ago

@mykola-dev @hoangtucmc

Please try the latest version 4.8.0 as the issue you’re experiencing has been addressed. If the problem persists, kindly provide us with more details so we can further investigate and assist you in resolving it.