Skip to content

Error: Constructor FirebaseListAdapter in class FirebaseListAdapter cannot be applied #2

@Abhilashken

Description

@Abhilashken

adapter = new FirebaseListAdapter<ChatMessage>(this,ChatMessage.class,R.layout.list_item,FirebaseDatabase.getInstance().getReference())

I am facing an error in my code
adapter= new FirebaseListAdapter(this,ChatMessage.class,R.layout.list_item,FirebaseDatabase.getInstance().getReference()) {

Error: constructor FirebaseListAdapter in class FirebaseListAdapter cannot be applied to given types;
required: FirebaseListOptions
found: MainActivity,Class,int,DatabaseReference
reason: actual and formal argument lists differ in length where T is a type-variable:T extends Object declared in class FirebaseListAdapter

my build.gradle(app) has
'com.firebaseui:firebase-ui:3.1.2' version of firebase ui.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions