Initialization of FirebaseApp in Firebase Android
<p>I tried to create a login form in android studio and integrated the new firebase <a href="https://console.firebase.google.com" rel="nofollow noreferrer">https://console.firebase.google.com</a> and change my code from legacy to new one.</p>

<p>I'm getting this after executing my application,</p>

<blockquote>
  <p>java.lang.IllegalStateException: FirebaseApp with name [DEFAULT]
  doesn't exist.</p>
</blockquote>

<p>I don't know how to set or to initialize this with the new Firebase. This is what I did for Authenticating the user and getInstance.</p>

<pre><code>FirebaseAuth mAuth = FirebaseAuth.getInstance();
FirebaseApp app = Firebase.getInstance(FirebaseApp.DEFAULT_NAME);
</code></pre>

<p>in this part i have an error does anyone has Idea?</p>