android - Unable to create release-build with RxJava as dependency and proguard-rules -


i'm using 'compile 'io.reactivex:rxjava:1.3.1' in dependencies

i have enabled minifyenabled true obfuscate code.

but i'm getting below error-

warning:rx.internal.schedulers.newthreadworker: can't find referenced method 'java.util.concurrent.concurrenthashmap$keysetview keyset()' in library class java.util.concurrent.concurrenthashmap 

i have added proguard rules rxjava below-

-keep class rx.schedulers.schedulers {     public static <methods>; } -keep class rx.schedulers.immediatescheduler {     public <methods>; } -keep class rx.schedulers.testscheduler {     public <methods>; } -keep class rx.schedulers.schedulers {     public static ** test(); } -keepclassmembers class rx.internal.util.unsafe.*arrayqueue*field* {     long producerindex;     long consumerindex; } -keepclassmembers class rx.internal.util.unsafe.baselinkedqueueproducernoderef {     long producernode;     long consumernode; }  -keepclassmembers class rx.internal.util.unsafe.** {     long producerindex;     long consumerindex; } 

i have tried compile 'com.artemzin.rxjava:proguard-rules:1.3.1.0' still i'm getting same issue mention @ top.

don't know proguard rule solve issue, if it's not necessary use 1.3.1, can use older version 1.3.0 now. version 1.3.1 contains minor changes , 1.3.0 these proguard rules works fine.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -