question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RxJava 2.2.13 Proguard issue

See original GitHub issue

After updating to RxJava 2.2.13 we get the following proguard warnings and the build fails:

Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find superclass or interface java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find superclass or interface java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find superclass or interface java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscription: can't find superclass or interface java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowPublisherFromReactive: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$FlowToReactiveSubscription: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow: can't find referenced class java.util.concurrent.Flow$Publisher
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowProcessor: can't find referenced class java.util.concurrent.Flow$Processor
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscriber: can't find referenced class java.util.concurrent.Flow$Subscriber
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription
Warning: org.reactivestreams.FlowAdapters$ReactiveToFlowSubscription: can't find referenced class java.util.concurrent.Flow$Subscription

I assume it’s because of the changes from Reactive Streams 1.0.3:

FlowAdapters artifact removed, FlowAdapters moved into the core jar https://github.com/reactive-streams/reactive-streams-jvm/issues/424

Any advice on how to fix Proguard?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
akarnokdcommented, Oct 15, 2019

You may suppress the warning apparently, one of these could work:

-dontwarn org.reactivestreams.FlowAdapters
-dontwarn org.reactivestreams.**
-dontwarn java.util.concurrent.flow.**
-dontwarn java.util.concurrent.**
1reaction
vanniktechcommented, Nov 7, 2019

I believe it’s as simple as this:

diff --git a/src/main/resources/META-INF/proguard/rxjava2.pro b/src/main/resources/META-INF/proguard/rxjava2.pro
new file mode 100644
index 000000000..b9994780a
--- /dev/null
+++ b/src/main/resources/META-INF/proguard/rxjava2.pro
@@ -0,0 +1,2 @@
+# Reactive Stream specification is bringing them but not using them.
+-dontwarn java.util.concurrent.Flow
\ No newline at end of file

I wanted to submit a PR but RxJava does not work with Gradle 5.x and the Gradle Wrapper 4.x that is being used does not like my Java 11 version 🤷‍♂️ Hence I can’t verify it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find io.reactivex.rxjava2:rxandroid:2.2.20
I have tried rxjava library for the first time but the project is not being synced." Could not find io. reactivex. rxjava2:rxandroid:2.2. 20....
Read more >
io.reactivex.rxjava2 : rxjava : 2.2.13 - Maven Central
RxJava - Reactive Extensions for Java.
Read more >
ProGuard Manual: Troubleshooting - Guardsquare
Possible work-arounds: let the java compiler not produce debug information ( -g:none ), or let ProGuard's obfuscation step remove the debug information again...
Read more >
RxJava 2 for Android Apps: RxBinding and RxLifecycle - Code
RxJava is one of the most popular libraries for bringing reactive ... proguardFiles getDefaultProguardFile('proguard-android.txt'), ...
Read more >
Retiring Packages with Broken Dependencies in branched ...
... requires java-headless = 1:1.8.0 jdo2-api-2.2-13.fc26.src requires java-devel = 1:1.8.0 ... Please report issues at its pagure instance: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found