title: Firebase doesn't work on Android Studio Emulator
body: <p>I was working on a project for my studies and everything was working fine, but I changed my OS to win11 while wiping all previous data.<br>
  Now Firebase is stuck on &quot;loading&quot; after using any type of sign in. Real time database data is not showing as well. After around 5-10 of waiting auth will sometimes work continuously (can sign in, sign out multiple times, until running app again) but database never.<br>
  Everything works well when i use physical device. Apps without firebase work fine on emulator. Internet connection works. Example app that doesn't work:<br> <a href="https://github.com/firebase/quickstart-android" rel="noreferrer">https://github.com/firebase/quickstart-android</a><br>
  <br>I have:<br></p>
  <ol>
  <li>Used multiple different emulators(those with google play) with different sdk</li>
  <li>Changed SHA1 and google-servies.json</li>
  <li>In Settings -&gt; Appearance &amp; Behavior -&gt; SDK Tools downloaded and activated Google play service</li>
  <li>Reinstalling Android Studio, installing win10 again</li>
  <li>Updated Google Play services version</li>
  <li>Tried different projects on different firebase accounts</li>
  <li>Activated Sign-in methods in firebase console</li>
  <li>Searched web for several hours and done many other things I can't even remember now</li>
  </ol>
  <p>The only error I'm sometimes getting is: <br><strong>E/FirebaseInstanceId: binding to the service failed</strong>
  <br>and this error when I use new emulator for the first time: <br><strong>E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: AUTHENTICATION_FAILED. Won't retry the operation.
  <br>E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.
  <br>E/FA: Missing google_app_id. Firebase Analytics disabled.
  <br>E/FA: Uploading is not possible. App measurement disabled</strong>
  <br>
  For me it looks like something is blocking(or really slowing down) connection between android studio emulator and firebase.
  <br> I would be very grateful for any kind of help, its really important for my studies.</p>