如何混淆代码

kotlin编写的android程序用常规的混淆方法报错。如何正确的混淆代码
已邀请:

nextdiscover - 90后

赞同来自:

请问怎么解决,我也遇到了

mishaki

赞同来自:

这是在stackoverflow上找到了,加上去后明显少了很多和kotlin有关的错误提示
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 {
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
}
网址:https://stackoverflow.com/ques ... guard

要回复问题请先登录注册