我在开发原生插件的时候,不混淆第三方依赖库怎么配置。
插件中的proguard-rules.pro consumer-rules.pro都有代码
-keep class com.netease.lava.* {;}
-keep class com.netease.yunxin.* {;}
但是制作自定义基座时,还是被混淆导致出错。
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class a.a.a.a.a.a found in modules catcher-1.0.1-runtime (com.netease.yunxin:catcher:1.0.1) and report-2.0.5-runtime (com.netease.yunxin:report:2.0.5)
Duplicate class a.a.a.a.a.b found in modules catcher-1.0.1-runtime (com.netease.yunxin:catcher:1.0.1) and report-2.0.5-runtime (com.netease.yunxin:report:2.0.5)
Duplicate class a.a.a.a.a.c found in modules catcher-1.0.1-runtime (com.netease.yunxin:catcher:1.0.1) and report-2.0.5-runtime (com.netease.yunxin:report:2.0.5)