How to use Kotlin with Proguard
问题 I'm trying to add Kotlin to my project and I need to use proguard. Which rules should I add to proguard to support Kotlin? Thank you 回答1: You don't need to do anything special. Kotlin works with ProGuard out of the box. But you may face some strange errors when processing your application with ProGuard. In this case just add -dontwarn kotlin.** Also if you want to get rid of null checks at runtime you may use the following rule: -assumenosideeffects class kotlin.jvm.internal.Intrinsics {