uber/RxDogTag

Error: "... only supported starting with Android N... "

Closed this issue · 4 comments

When trying to compile I get this error:

"Default interface methods are only supported starting with Android N (--min-api 24): io.reactivex.CompletableObserver com.uber.rxdogtag.ObserverHandler.handle(io.reactivex.Completable, io.reactivex.CompletableObserver)"

Is this expected?

My setup:
minSdkVersion 21
targetSdkVersion 29
multiDexEnabled true

RxDogTag is built targeting Java 8. If your minSdk on Android is lower than 24, you must use D8 (which can desugar default interface methods) and target/source compatibility 8.

You probably need to highlight this in README. minSdkVersion 21 is very widespread.

I additionally have:

Invoke-customs are only supported starting with Android O (--min-api 26)

RxJava itself also requires java 8 now. D8 has existed for awhile now on Android projects needing to support older minSdks. The ecosystem has moved on, time to catch up.