title: Firebase not working com.google.firebase.installations.FirebaseInstallationsException
body: <p>I am working on an Android app, I was in a situation that I want to move the app to a new firebase project, so I removed the old firebase project and created a new one, then I added my app to that project. After that, no firebase functionalities are working.</p>
  
  <p>I have firebase cloud messaging in my app, it was working but it's not working now, I am not receiving <code>FirebaseMessagingService$onNewToken</code>and also I am using <code>firestore</code> as my back-end database. Inside my <code>.addOnSuccessListener</code> I am getting <code>0</code> documents back. It's not failing but returning no documents.</p>
  
  <p>I thought might be a problem with firebase, so I created a test app in <code>node.js</code> and I try to fetch documents from <code>firestore</code> it's working fine.</p>
  
  <p>The android app is not crashing, but checked the error log, and I am seeing the following log.</p>
  
  <pre class="lang-java prettyprint-override"><code>java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.android.gms.tasks.Tasks.zzb(Unknown Source:61)
          at com.google.android.gms.tasks.Tasks.await(Unknown Source:23)
          at com.google.firebase.iid.zzs.zzb(com.google.firebase:firebase-iid@@20.1.1:54)
          at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.1:89)
          at com.google.firebase.iid.zzv.run(Unknown Source:12)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
          at java.lang.Thread.run(Thread.java:764)
       Caused by: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.firebase.installations.FirebaseInstallations.doRegistrationInternal(com.google.firebase:firebase-installations@@16.0.0:333)
          at com.google.firebase.installations.FirebaseInstallations.doGetId(com.google.firebase:firebase-installations@@16.0.0:280)
          at com.google.firebase.installations.FirebaseInstallations.access$lambda$0(Unknown Source:0)
          at com.google.firebase.installations.FirebaseInstallations$$Lambda$1.run(Unknown Source:2)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
          at java.lang.Thread.run(Thread.java:764) 
  2020-03-05 21:18:49.022 23658-23666/app.spidy.cyberwire E/spidy.cyberwir: Something went wrong getting fds from adb. Retry!: Success
  2020-03-05 21:20:11.198 23658-24183/app.spidy.cyberwire E/FirebaseInstanceId: Failed to get FIS auth token
      java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.android.gms.tasks.Tasks.zzb(Unknown Source:61)
          at com.google.android.gms.tasks.Tasks.await(Unknown Source:23)
          at com.google.firebase.iid.zzs.zzb(com.google.firebase:firebase-iid@@20.1.1:54)
          at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.1:89)
          at com.google.firebase.iid.zzv.run(Unknown Source:12)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
          at java.lang.Thread.run(Thread.java:764)
       Caused by: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.firebase.installations.FirebaseInstallations.doRegistrationInternal(com.google.firebase:firebase-installations@@16.0.0:333)
          at com.google.firebase.installations.FirebaseInstallations.doGetId(com.google.firebase:firebase-installations@@16.0.0:280)
          at com.google.firebase.installations.FirebaseInstallations.access$lambda$0(Unknown Source:0)
          at com.google.firebase.installations.FirebaseInstallations$$Lambda$1.run(Unknown Source:2)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
          at java.lang.Thread.run(Thread.java:764) 
  2020-03-05 21:22:41.287 23658-24278/app.spidy.cyberwire E/FirebaseInstanceId: Failed to get FIS auth token
      java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.android.gms.tasks.Tasks.zzb(Unknown Source:61)
          at com.google.android.gms.tasks.Tasks.await(Unknown Source:23)
          at com.google.firebase.iid.zzs.zzb(com.google.firebase:firebase-iid@@20.1.1:54)
          at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.1:89)
          at com.google.firebase.iid.zzv.run(Unknown Source:12)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
          at java.lang.Thread.run(Thread.java:764)
       Caused by: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.firebase.installations.FirebaseInstallations.doRegistrationInternal(com.google.firebase:firebase-installations@@16.0.0:333)
          at com.google.firebase.installations.FirebaseInstallations.doGetId(com.google.firebase:firebase-installations@@16.0.0:280)
          at com.google.firebase.installations.FirebaseInstallations.access$lambda$0(Unknown Source:0)
          at com.google.firebase.installations.FirebaseInstallations$$Lambda$1.run(Unknown Source:2)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
          at java.lang.Thread.run(Thread.java:764) 
  2020-03-05 21:27:11.330 23658-24399/app.spidy.cyberwire E/FirebaseInstanceId: Failed to get FIS auth token
      java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.android.gms.tasks.Tasks.zzb(Unknown Source:61)
          at com.google.android.gms.tasks.Tasks.await(Unknown Source:23)
          at com.google.firebase.iid.zzs.zzb(com.google.firebase:firebase-iid@@20.1.1:54)
          at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.1:89)
          at com.google.firebase.iid.zzv.run(Unknown Source:12)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
          at java.lang.Thread.run(Thread.java:764)
       Caused by: com.google.firebase.installations.FirebaseInstallationsException
          at com.google.firebase.installations.FirebaseInstallations.doRegistrationInternal(com.google.firebase:firebase-installations@@16.0.0:333)
          at com.google.firebase.installations.FirebaseInstallations.doGetId(com.google.firebase:firebase-installations@@16.0.0:280)
          at com.google.firebase.installations.FirebaseInstallations.access$lambda$0(Unknown Source:0)
          at com.google.firebase.installations.FirebaseInstallations$$Lambda$1.run(Unknown Source:2)
  </code></pre>