rxjava error Caused by java.lang.NoSuchFieldException: value
http://crashes.to/s/00db6f57d09
Either wrong ProGuard ruleset or you run a particularly flawed Samsung Android version.
proguard setting
rxjava
-dontwarn rx.**
-keep class rx.schedulers.Schedulers {
public static
Yup those are definitely wrong. Those are the rules with RxJava 1.0.16 (Unless they changed something with 1.0.17, those should also work)
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
rx.internal.util.atomic.LinkedQueueNode producerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
rx.internal.util.atomic.LinkedQueueNode consumerNode;
}
-dontwarn sun.misc.Unsafe
@vanniktech thx T_T
Looks like this issue is resolved and can be closed.
// @chonamdoo you can use ProGuard rules for RxJava baked as aar https://github.com/artem-zinnatullin/RxJavaProGuardRules, I keep them updated with RxJava releases!
Closing. Please reopen it if you still have any question for proguard