The following code
package com.inthemoon.snippets.rxjava;
import io.reactivex.*;
public class HelloWorld {
public static void main(String[] args) {
Flowable.just("Hello world").subscribe(System.out::println);
}
}
causes the following compile error
Error:(9, 15) java: cannot access org.reactivestreams.Publisher class file for org.reactivestreams.Publisher not found
POM dependency is following
<dependencies>
<!-- https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxjava -->
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>2.0.4</version>
</dependency>
</dependencies>
.final
explicit or iv RxJava2.0.3
– Anjelicaanjou-U
to force updating dependencies .. then adding the 2.0.4 again ... – Nescience