Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RxKotlin is not resolved properly after updating Gradle to 3.4.0 #216

Open
AndroidPat opened this issue May 2, 2019 · 17 comments
Open

RxKotlin is not resolved properly after updating Gradle to 3.4.0 #216

AndroidPat opened this issue May 2, 2019 · 17 comments

Comments

@AndroidPat
Copy link

Hi,
The new stable version of Android Studio suggest to update Gradle to 3.4.0 to get all the latest benefits.

After updating my Gradle from 3.3.2 ( wrapper 4.10.1 ) to 3.4.0 ( wrapper 5.1.1 ) the library is not resolved properly. That means all the references to rxKotlin in my project are not resolved. The behaviour is similar to commenting out the dependency in build.gradle.

Error examples:

  • Unresolved reference: CompositeDisposable
  • Unresolved reference: BehaviorSubject
  • Unresolved reference: subjects
    library reference: implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
    kotlin gradle plugin version: '1.3.31'

Steps to fix:

  • project clean
  • cache removal
  • invalidate caches + restart
  • remove build folder
  • try in a different project
@BaN4NaJ0e
Copy link

Same problem here with gradle plugin 3.4.1 and gradle wrapper 5.1.1. Also tried with gradle wrapper version 5.4.1 without luck.

@milser
Copy link

milser commented May 30, 2019

Same issue here, I'm back to Gradle plugin 3.3.0 and Gradle wrapper 4.10.3

@thomasnield
Copy link
Collaborator

Hi all, thanks for reporting the issue. I've been crazy busy these days and I'll try to get back to the Rx libraries I own soon.

@nayan-dhabarde
Copy link

Same issue here, I'm back to Gradle plugin 3.3.0 and Gradle wrapper 4.10.3

This helped. Thank you!!

@cgathergood
Copy link

Thanks for posting this, I've been stuck on this for a few days. I appreciate it!

@erluxman
Copy link

If you are still facing this issue, along with the dependency of rxKotlin use this

implementation 'io.reactivex.rxjava2:rxkotlin:x.y.z'
api 'io.reactivex.rxjava2:rxjava:2.2.0'

Only works for Gradle 5.0 or above. (If I am not wrong)

@FireZenk
Copy link

Is it planned some fix for this? Solutions here does not work for me

@vpriscan
Copy link
Collaborator

vpriscan commented Jun 28, 2019

@FireZenk RxKotlin 2.4.0-beta.1 has just been released. Can you try it out and post a feedback whether the issue still persists or is gone?

@mamatagelanee07
Copy link

@FireZenk RxKotlin 2.4.0-beta.1 has just been released. Can you try it out and post a feedback whether the issue still persists or is gone?

I tried yesterday with this project, which uses RxKotlin version 2.1.0, and it's still not working.

Here are dependencies I am using,
RxKotlin : 2.1.0
RxAndroid : 2.0.1
Android Studio : 3.4.1
Kotlin : 1.3.40

For time being, I added io.reactivex.rxjava2:rxjava:2.0.2 to compile the project 👍

@Jacks0N23
Copy link

@FireZenk RxKotlin 2.4.0-beta.1 has just been released. Can you try it out and post a feedback whether the issue still persists or is gone?

issue is still there

RxKotlin : 2.4.0-beta.1
RxJava : 2.2.10
Android Studio : 3.5.0-beta5
Kotlin : 1.3.40

@RScottLewis
Copy link

RScottLewis commented Jul 2, 2019

I too have this problem. Basic classes aren't being found like Single. The includes don't work. The IDE is able to read the cache but and find the Single declaration but the kotlin compiler can't. When I look at the tool bar, I noticed the cache is pointing to a cache directory titled file-2.1. I make an app and morphdevapp and they both fail. Maybe it should point to 2.2?

@Jacks0N23
Copy link

Jacks0N23 commented Jul 3, 2019

Workaround:
it works correctly with named params
UPD:
it was fixed by latest Kotlin plugin

@mamatagelanee07
Copy link

Which version of Kotlin Plug-In are you using?

@Jacks0N23
Copy link

1.3.50

@mamatagelanee07
Copy link

@Jacks0N23 Trying with plug-in 1.3.61, not working yet!

@Jacks0N23
Copy link

What AGP version? Since 3.5 it's working good

@yourshinsuke
Copy link

subscribeBy removed onNext? onComplete?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests