忽略这些Kotlin的保护说明是否安全? [英] Is it safe to ignore these proguard notes for kotlin?

查看:104
本文介绍了忽略这些Kotlin的保护说明是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白为什么我要从proguard获取这些说明,以及是否需要采取任何措施来解决这些问题.

I don't understand why I'm getting these notes from proguard and if I've to do anything to address them.

Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.jdk8.JDK8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE7PlatformImplementations 

Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class 
kotlin.reflect.jvm.internal.ReflectionFactoryImpl

其中三个用于kotlin.internal.PlatformImplementationKt,一个用于kotlin.jvm.internal.Reflection

Three of them are for kotlin.internal.PlatformImplementationKt and one for kotlin.jvm.internal.Reflection

kotlin: 1.2.71
Android Studio / gradle plugin: 3.2.0
gradle: 4.10.2

推荐答案

是的,这是安全的,您应该将这些规则添加到您的proguard-rules.pro配置中

Yes it is safe, you should add those rules to your proguard-rules.pro configuration

# Kotlin
-keep class kotlin.Metadata { *; }
-dontnote kotlin.internal.PlatformImplementationsKt
-dontnote kotlin.reflect.jvm.internal.**

这篇关于忽略这些Kotlin的保护说明是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆