title: Offline Firestore : Stream closed with status: Status{code=UNAVAILABLE
body: <p>I am getting those error messages when I am using my App offline (it is working when I am online):</p>
  <blockquote>
  <p>W/Firestore(23675): (24.0.1) [WatchStream]: (da69cba) Stream closed
  with status: Status{code=UNAVAILABLE, description=End of stream or
  IOException, cause=null}. W/Firestore(23675): (24.0.1) [WriteStream]:
  (9780b0d) Stream closed with status: Status{code=UNAVAILABLE,
  description=End of stream or IOException, cause=null}.
  W/Firestore(23675): (24.0.1) [WriteStream]: (9780b0d) Stream closed
  with status: Status{code=UNAVAILABLE, description=Unable to resolve
  host firestore.googleapis.com, cause=java.lang.RuntimeException:
  java.net.UnknownHostException: Unable to resolve host
  &quot;firestore.googleapis.com&quot;: No address associated with hostname</p>
  </blockquote>
  <p>Here is my main.dart :</p>
  <pre><code>  await Firebase.initializeApp();
    FirebaseFirestore.instance.settings = Settings(cacheSizeBytes: Settings.CACHE_SIZE_UNLIMITED);
    FirebaseFirestore.instance.settings = Settings(persistenceEnabled: true);
  </code></pre>
  <p>What did I miss ? (I have the last version of flutter and cloud_firestore package)</p>
  <p>Is it because I am in debug mode using Android Emulator ?</p>