Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
I have the same issue. When building with androidx.datastore:datastore-preferences:1.1.1
the folder app/build/intermediates/merged_native_libs
exists. When building with androidx.datastore:datastore-preferences:1.0.0
it doesn't.
When running nm -gD app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/x86_64/libdatastore_shared_counter.so
the output is
0000000000000d10 T Java_androidx_datastore_core_NativeSharedCounter_nativeCreateSharedCounter
0000000000000db0 T Java_androidx_datastore_core_NativeSharedCounter_nativeGetCounterValue
0000000000000dc0 T Java_androidx_datastore_core_NativeSharedCounter_nativeIncrementAndGetCounterValue
0000000000000cb0 T Java_androidx_datastore_core_NativeSharedCounter_nativeTruncateFile
0000000000000c60 T _Z16ThrowIoExceptionP7_JNIEnvPKc
0000000000000dd0 T _ZN9datastore12TruncateFileEi
0000000000000e40 T _ZN9datastore15GetCounterValueEPNSt6__ndk16atomicIjEE
0000000000000df0 T _ZN9datastore19CreateSharedCounterEiPPv
0000000000000e50 T _ZN9datastore27IncrementAndGetCounterValueEPNSt6__ndk16atomicIjEE
U __cxa_atexit@LIBC
U __cxa_finalize@LIBC
U __errno@LIBC
U __stack_chk_fail@LIBC
U ftruncate@LIBC
U mmap@LIBC
U strerror@LIBC
su...@gmail.com <su...@gmail.com> #3
Strawberry Strawberry Strawberry strawberry Strawberry
le...@gmail.com <le...@gmail.com> #4
el...@google.com <el...@google.com>
le...@gmail.com <le...@gmail.com> #5
el...@google.com <el...@google.com> #6
Hi there - what version of Gradle are you using?
le...@gmail.com <le...@gmail.com> #7
el...@google.com <el...@google.com> #8
Is there any way you can provide a sample project repro-ing the issue? Otherwise it is very difficult for us to help get to the bottom of the issue. Thanks!
le...@gmail.com <le...@gmail.com> #9
Currently, it uses datastore version 1.0.0, which appears to lack native code.
Upgrading datastore to version 1.1.4 might reproduce the behavior:
However, this outcome could be influenced by Gradle configurations or the operating system (I am on Windows 11), as I have encountered several related issues, such as the one discussed here:
zh...@google.com <zh...@google.com> #10
Yes, datastore 1.1.0+ stable releases contain native code. If I understand it correctly, the message is more of a warning than an error?
le...@gmail.com <le...@gmail.com> #11
There are no error or warning messages from Gradle.
However, the debug symbols file is not being included in the Android App Bundle (AAB) as described in the documentation:
Description
DataStore Component used: datastore-preferences
DataStore Version used: 1.1.1
Devices/Android versions reproduced on: N/A
Android Application Bundle (AAB) built with the following
datastore-preferences
dependency:implementation 'androidx.datastore:datastore-preferences:1.1.1' // problematic
is causing the following issue in the Google Play Console:
On the other hand the version 1.0.0 is not causing any issues:
implementation 'androidx.datastore:datastore-preferences:1.0.0' // not problematic