how to resolve this duplicate class in Kotlin when Use two SDK's .aar files which contains same class file?

Viewed 383

Duplicate class bbota01z.bbota01z.bbota01z.a found in modules jetified-boltsdk-release-3.0.71-runtime.jar (boltsdk-release-3.0.71.aar) and jetified-emv-anet-sdk-runtime.jar (emv-anet-sdk.aar) Duplicate class bbota01z.bbota01z.bbota01z.b found in modules jetified-boltsdk-release-3.0.71-runtime.jar (boltsdk-release-3.0.71.aar) and jetified-emv-anet-sdk-runtime.jar (emv-anet-sdk.aar)

I have already tried lot's of ways but no luck.any help would be appreciatiable.

2 Answers

You probably have two dependencies that are already obfuscated and clash class names.
jetified-boltsdk-release-3.0.71-runtime.jar
jetified-emv-anet-sdk-runtime.jar

You can try to disable obfuscation as suggested on the other answer by Shailesh, but I'd suggest maybe looking for the documentation or support from those libs and see if they provide Proguard/R8 rules to avoid the clash.

Related