简体   繁体   中英

kotlin android proguard error

I'm trying to build an apk and proguard it but it fails with messages like:

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

I added in my proguard.cfg, -dontwarn on kotlin.dom.** but it does not help.

I was not using standard proguard-android-optimized so I edited my config to match as much as possible (I have ACRA config as well) and add -dontwarn kotlin.** and -dontwarn org.w3c.dom.events.* and it's proguarding now.

Another problem pops up with Dexing I'm still investigating

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM