Incompatible Groupie Adapter
See original GitHub issueHi, first of all, I apoligize in case if this is not the place to ask these sort of questions, but I’ve been searching and searching and I just can’t find the answer.
I’m learning Android development, while following a tutorial made by Lets Build this App ( on Youtube ). He used this library and I tried too, but I’m failing. I created a RecyclerView and tried to make a GroupAdapter using Groupie like this:
newmessage_view.adapter = groupAdapter
This is what he does in the video, but when I do it, it gives me an error:
Type mismatch. Required: (RecyclerView.Adapter<android.support.v7.widget.RecyclerView.ViewHolder!>?..RecyclerView.Adapter<*>?) Found: GroupAdapter<com.xwray.groupie.ViewHolder>
Again, I’m sorry if this is not the place, but I hope someone can help me. Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:12 (1 by maintainers)
Top GitHub Comments
I thought I wrote a response to this … don’t know what happened!
You need to use the new versions of the Android support library, under the androidx package name. The latest version of Groupie that supports the old ones is 2.1. But if you’re just starting out with a new project, I strongly recommend you start with the newest support libs. Android Studio > New Project should have your back here!
[pt-BR]
Hey @jholw nem todo mundo fala Português aqui. Eu uso Groupie com Android Studio 3.4.1 e Gradle 5.4.1 sem problemas. Postar uma nova questão com exemplo demonstrando o problema ajuda bastante, apesar de que esse tipo de pergunta seria feita no StackOverflow primeiro.
[en] Q: Good night folks, I need help what can I do to use groupie with androidx 3.4.1 with Gradle 5.4.1, it does not accept the implementation on gradle.builder on app. Could anyone help me? A: Hey @jholw not everyone speak Portuguese here. I’m using Groupie with Android Studio 3.4.1 and Gradle 5.4.1, no problem. Adding a new question with an example demonstrating the problem helps us understand, although this kind of question would be posted on StackOverflow first.