title: Android Jetpack DataStore Fatal Exception: java.io.IOException
body: <p>Im using datastore in one of my android library and I get crashes from google vitals that I cant reproduce and should not be possible...</p>
  <p>I create my datastore as per guide:</p>
  <pre><code>val Context.baseDataStore by preferencesDataStore(
  name = &quot;my_pref&quot;)
  </code></pre>
  <p>This is ofcourse on the top level and outside of any class, so by default it should always be a single instance, and I access the data store by using the context.baseDataStore in my app,but then I get this from crashlytics:</p>
  <p>Fatal Exception: java.io.IOException
  Unable to rename /data/user/0/com.myapp/files/datastore/my_pref.preferences_pb.tmp.This likely means that there are multiple instances of DataStore for this file. Ensure that you are only creating a single instance of datastore for this file.</p>
  <p>Can anything be done about it?</p>
  <p>Additional Info: It looks like it happens once on upgrade since crashlytics says its crashing in the first second. Also it looks like it is happening only once per upgrade since the occurrences are dropping to 0 after a new version release</p>