title: Error "no suitable constructor found for FirebaseListAdapter()" in Android
body: <p>I have no idea about neither <code>Firebase</code> nor <code>Arduino</code>....
  But I wrote this code, referring to the video of David East.
  So I am getting an error, please help me solve it.</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Error:(66, 52) error: no suitable constructor found for FirebaseListAdapter()
    constructor FirebaseListAdapter.FirebaseListAdapter(Activity,Class,int,Firebase) is not applicable
    (actual and formal argument lists differ in length)
    constructor FirebaseListAdapter.FirebaseListAdapter(Activity,Class,int,Query) is not applicable
    (actual and formal argument lists differ in length)</p>
  </blockquote>
  
  <p>This is the code for MainActivity.java:</p>
  
  <pre><code>package com.example.devashish.sprout;
  
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.util.Log;
  import android.view.View;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.widget.ArrayAdapter;
  import android.widget.Button;
  import android.widget.ListView;
  import android.widget.TextView;
  
  import com.firebase.client.ChildEventListener;
  import com.firebase.client.DataSnapshot;
  import com.firebase.client.Firebase;
  import com.firebase.client.FirebaseError;
  import com.firebase.client.ValueEventListener;
  import com.firebase.ui.FirebaseListAdapter;
  
  import java.util.ArrayList;
  import java.util.Map;
  import java.util.Objects;
  
  public class MainActivity extends AppCompatActivity {
  
  Firebase mRootRef;
  ArrayList&lt;String&gt; mMessages= new ArrayList&lt;&gt;();
  
  TextView mTextView;
  ListView mListView;
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
      fab.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                      .setAction("Action", null).show();
          }
      });
  }
  
  @Override
  protected void onStart(){
      super.onStart();
  
  
  
      mTextView=(TextView)findViewById(R.id.textViewCondition);
      mListView=(ListView)findViewById(R.id.listView);
  
      mRootRef = new Firebase("https://pleaserun.firebaseio.com");
      Firebase messagesRef=mRootRef.child("condition");
      final FirebaseListAdapter&lt;String&gt; adapter= new FirebaseListAdapter&lt;String&gt;() {
          @Override
          protected void populateView(View view, String s, int i) {
              TextView textView=(TextView)view.findViewById(android.R.id.text1);
              textView.setText(s);
              mListView.setAdapter(adapter);
          }
      };
  
  
  
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
  
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  }
  </code></pre>
  
  <p>I changed the line you mentioned to this: final FirebaseListAdapter adapter = new FirebaseListAdapter(this,String.class,android.R.layout.simple_list_item_‌​1,messagesRef) </p>
  
  <p>It is now giving error: Error:(71, 38) error: variable adapter might not have been initialized</p>