8

我正在尝试构建一个 apk 并对其进行保护,但它失败并显示如下消息:

Error:ProGuard: [radis] Warning: kotlin.dom.EventListenerHandler: can't find superclass or interface org.w3c.dom.events.EventListener
Error:ProGuard: [radis] Warning: kotlin.dom.CloseableEventListener: can't find referenced class org.w3c.dom.events.EventTarget
Error:ProGuard: [radis] Warning: kotlin.dom.CloseableEventListener: can't find referenced class org.w3c.dom.events.EventListener
Error:ProGuard: [radis] Warning: kotlin.dom.DomPackage: can't find referenced class org.w3c.dom.events.MouseEvent
Error:ProGuard: [radis] Warning: kotlin.dom.DomPackage: can't find referenced class org.w3c.dom.events.Event

我在我的 proguard.cfg 中添加了 -dontwarn on kotlin.dom。** 但它没有帮助。

4

1 回答 1

6

我没有使用标准的 proguard-android-optimized 所以我编辑了我的配置以尽可能匹配(我也有 ACRA 配置)并添加 -dontwarn kotlin.** 和 -dontwarn org.w3c.dom.events.* 和现在正在预防。

德兴又出现一个问题,我还在调查

于 2014-09-25T06:46:44.260 回答