Assigned
Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
My dependencies:
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
implementation 'com.google.android.material:material:1.4.0'
If I remove androidx.appcompat:appcompat:1.4.0
, the warning vanishes, so I imagine there's some transitive dependency on an older version of androidx.appcompat:appcompat
that doesn't have the warning.
Description
DataStore Component used: androidx.datastore:datastore-preferences-core DataStore Version used: 1.1.1 Devices/Android versions reproduced on: MacBook Pro M1, MacOs Sonoma 14.4.1
This issue only occurs when using a "distributable" either using the
runDistributable
gradle task or by launching the .app generated by thecreateDistributable
task.It works perfectly when running the app through the
run
gradle task.Writing on
Datastore<Preferences>
throwsjava.lang.ClassNotFoundException: sun.misc.Unsafe
, creating the datastore and reading from it works perfectly.This simple project allow you to reproduce the issue:https://github.com/Julien-Boulvert/datastore-issue-demo
Here you have the full stacktrace: