我在我的应用程序1AAR中使用两个库,并使用另一个gradle依赖项。我在构建发布版时遇到了这个错误。
Duplicate class a.a found in modules jetified-android-sdk-1.7.26-runtime (com.cashfree.pg:android-sdk:1.7.26) and jetified-adsdk-AN-1.15.16-runtime (adsdk-AN-1.15.16.aar)
这是我的构建gradle应用程序级别
implementation 'com.cashfree.pg:android-sdk:1.7.26'
implementation files('libs/adsdk-AN-1.15.16.aar')
//Dependencies used by all payment modes
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
无法理解此a.a
类
发布于 2022-07-22 07:30:03
这一问题是由于SDK的保护规则,将下面的规则添加到SDK pro卫士,而它当时起了作用。
-repackageclasses 'com.example'
-allowaccessmodification
-useuniqueclassmembernames
-keeppackagenames doNotKeepAThing
https://stackoverflow.com/questions/73068303
复制相似问题