RxJava和FasterXML有一个有效的proguard规则吗?
现在阻止我在生产中使用kotlin的唯一问题是我找不到一个正确的proguard文件。
我用什么:
1.Kotlin
2.Anko
3.Jackson-科特林模块
以下是警告消息:
:app:proguardRelease Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry Warning: rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.ConcurrentCircularArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.ConcurrentSequencedCircularArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpmcArrayQueueConsumerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpmcArrayQueueProducerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpscLinkedQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpmcArrayQueueConsumerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpmcArrayQueueProducerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpscArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.UnsafeAccess: can't find referenced class sun.misc.Unsafe Warning: there were 41 unresolved references to classes or interfaces.
一个更好的就是把这个aar作为一个依赖:
这与Kotlin无关。 忽略您的proguard文件中的警告:
-dontwarn sun.misc.Unsafe -dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
- 错误:以下类的超类型无法解析。 请确保您在类路径中具有所需的依赖关系
- 尽管使用RxJava在另一个线程上订阅,但在使用Google的People API时仍然收到IllegalStateExceptionexception
- Kotlin – 高阶函数成本?
- Kotlin卡普失败 – 只看到Android API级别1的来源
- 如何合并具有相同父接口的kotlin中的两组枚举?
- 我怎样才能加入GreenDao的三个实体?
- 如何在Enum常量中实现抽象函数
- Android的 – 是否可以使用Comparator.comparing排序列表,而不是在API <24的自定义比较器?
- 如何用Kotlin调用自定义对话框? 将java转换为kotlin后失败