Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 402
Geob-o-matic Avatar asked Sep 24 '14 20:09

Geob-o-matic


1 Answers

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

like image 188
Geob-o-matic Avatar answered Sep 18 '22 11:09

Geob-o-matic