[英]Android studio Error: To use RxJava2 features, you must add `rxjava2` artifact from Room as a dependency
I have facing the following error while building the project.构建项目时遇到以下错误。 And unable to solve the same after trying it for whole day.
在尝试了一整天后无法解决同样的问题。
error: To use RxJava2 features, you must add `rxjava2` artifact from Room as a dependency. androidx.room:room-rxjava2:<version>
public abstract java.lang.Object clearAllBillers(@org.jetbrains.annotations.NotNull()
^
below are my dependancies inside the build.gradle以下是我在 build.gradle 中的依赖关系
implementation("androidx.room:room-rxjava2:2.3.0")
implementation "androidx.room:room-runtime:2.3.0"
implementation "androidx.room:room-ktx:2.3.0"
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
kapt "androidx.room:room-compiler:2.3.0"
I have done trying already existing solutions such as upgrading我已经尝试过现有的解决方案,例如升级
classpath 'com.android.tools.build:gradle:7.3.1'
Also tried to do invalidate cache and clean project.还尝试使缓存无效并清理项目。 Still not able to solve the issue.
仍然无法解决问题。
Please help me if you have any idea to get it resolve.如果您有解决问题的想法,请帮助我。 Thanks in advance!!!❤️
提前致谢!!!❤️
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.