JetpackDataStoreExample Add following dependency into your app level gradle file. dependencies { implementation "androidx.datastore:datastore-preferences:1.0.0-alpha01" }