Android - Firebase integration: CORRECT google-services.json but WRONG firebase url
<p>I've been trying to integrate my Android app with Firebase. In my first Firebase app (test-26ee4), I had set up the app incorrectly because I was denied permission...</p>

<p>After reading this (<a href="https://stackoverflow.com/questions/37424544/firebase-database-permission-denied-with-read-write-permissions-set-to-true">Firebase Database Permission denied with read/write permissions set to true</a>), I deleted (test-26ee4) and created a new Firebase app (awesome-etc). However, I noticed that I was getting the same errors. </p>

<p>After placing a log inside MainActivity.java,</p>

<pre><code>mDatabase = FirebaseDatabase.getInstance().getReference();
Log.d("testing", mDatabase.child("1").toString());
</code></pre>

<p>I found that the reference is still pointing to my OLD firebase app. </p>

<pre><code>10-16 12:00:06.882 14428-14428/com.example.twu.line D/testing: https://test-26ee4.firebaseio.com/1
</code></pre>

<p>The google-services.json reflects that the url should be awesome-etc, but I don't know why my Android app is reading from the google-services.json incorrectly.</p>