Reputation: 65
I am getting cannot resolve FirebaseRecyclerAdapter when trying to use it even after adding firebase ui in gradle dependency.Thanks in advance
Upvotes: 2
Views: 20048
Reputation:
In June 2023, it was the same problem for me. I was told about the version 6.2.1, I don't whether it exists or not but I tried to downgrade it to 1.2.0 and it worked. I clearly don't know why, but I think its because I was using a version that didn't existed or was a version that was partially damaged or deleted.
Upvotes: 0
Reputation: 15
I tried to import the following three packages, and my problem is solved:
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
implementation 'com.firebaseui:firebase-ui-database:8.0.1'
Upvotes: 0
Reputation: 21
If You are facing Problem in 2020 then use this dependency:
implementation 'com.firebaseui:firebase-ui-database:6.0.2'
above mentioned answers are not working in today's date i have tried all of them,remember import this package too:
import com.firebase.ui.database.FirebaseRecyclerAdapter;
Upvotes: 2
Reputation: 1
implementation 'com.firebaseui:firebase-ui-database:1.2.0'
You can use this gradle dependencies
Upvotes: -2
Reputation: 457
Go to build.gradle
file, add a dependency (get the latest one from here https://github.com/firebase/FirebaseUI-Android)
The latest one on 5 October 2019 is implementation 'com.firebaseui:firebase-ui-database:6.0.2'
Upvotes: 2
Reputation: 1
Use exactly the matched version of FireBaseRecyclerAdapter
to the Versions that you have included in gradle for the Firebase Database.
This link will surely help you
https://github.com/firebase/FirebaseUI-Android
In this link, you will find the matched Firebase dependency according to the version.
Upvotes: 0
Reputation: 164
The dependencies quoted above don't seem to work anymore. After about an hour of searching online, I found this; hopefully it helps someone. It certainly fixed my problem:
compile 'com.firebaseui:firebase-ui:0.4.3'
Upvotes: 0
Reputation: 2641
In your app level gradle:add the following firebase dependency
dependencies {
compile'com.firebaseui:firebase-ui-database:1.1.1'
Upvotes: 0
Reputation: 1681
I was getting the same issue, it's resolved by adding the firebase-ui dependency in build.gradle (module:app)
compile 'com.firebaseui:firebase-ui-database:0.4.0'
Also add the import in .java file where you're trying to declare it.
import com.firebase.ui.database.FirebaseRecyclerAdapter;
Upvotes: 3
Reputation: 4007
Can you show your build.gradle
file?
Also, have you tried putting this under your package name in your java class: import com.firebase.ui.database.FirebaseRecyclerAdapter;
?
Upvotes: 0