最近我注意到,在我使用Jetpack数据存储区的新项目中,我在应用程序Bundle 包中添加了一个新的原生lib:

bundle.abb\base\lib\arm64-v8a\libdatastore_shared_counter.so

那到底是什么?

是的,我以前没有过:

androidxDataStore = "1.0.0"

但在更新到:

androidxDataStore = "1.1.0"

update:

现在Google Play控制台向我显示了有关调试符号的警告:

enter image description here

我试图添加

android {
    ...
    buildTypes {
        ...
        release {
            ...
            ndk {
                debugSymbolLevel = "FULL"
            }
        }
    }

如所述here

但这并没有改变任何事情……

推荐答案

这似乎与:androidx/datastore/multiprocess/SharedCounter.kt有关,它可能提供后台访问控制.参见androidx.datastore.core,例如DataStoreImpl<T>:

/**
 * If downstream flow is UnInitialized, no data has been read yet, we need to trigger a new
 * read then start emitting values once we have seen a new value (or exception).
 *
 * If downstream flow has a ReadException, there was an exception last time we tried to read
 * data. We need to trigger a new read then start emitting values once we have seen a new
 * value (or exception).
 *
 * If downstream flow has Data, we should start emitting from downstream flow as long as its
 * version is not stale compared to the version read from the shared counter when we enter
 * the flow.
 *
 * If Downstream flow is Final, the scope has been cancelled so the data store is no
 * longer usable. We should just propagate this exception.
 *
 * State always starts at null. null can transition to ReadException, Data or
 * Final. ReadException can transition to another ReadException, Data or Final.
 * Data can transition to another Data or Final. Final will not change.
 */

名称multiprocess与涉及多个处理器的"多处理"的定义不一致-因为实际上,Forking 线程在哪个处理器上运行并不重要.

Android相关问答推荐

房间DB:UPSERT返回什么?

如何阻止Gradle在编译时生成app-metadata.properties

如何使用react native下载android中/data/data/[应用程序包名称文件夹]/files中的文件

当 Jetpack Compose 中的第一个文本很长时,将省略号添加到第一个文本

具有管理员权限的 Kotlin 中的多用户系统

系统导航栏在某些场景下应用了深色效果

如何将一个 Composable 作为其参数传递给另一个 Composable 并在 Jetpack Compose 中显示/运行它

在移动设备上看到时如何增加 PasswordField 文本?

组成不重叠的元素

我们也可以或应该对主要小部件使用预览 compose 功能吗?

无法通过 retrofit 解析对 kotlin 数据类的 xml 响应

如何限制键盘输入键不允许在下一行输入(Android Jetpack Compose 中的 TextField)

调用时 listFiles() nullpointerexception

Kotlin Coroutines 会取代 AsyncTask 吗?

插入查询室 OnConflictStrategy.REPLACE

优化 Room 数据库迁移

更新后 Firebase 服务无法在模拟器上运行

房间实时数据:启动时崩溃

Jetpack Compose Tapjacking:过滤对模糊 UI 的touch

如何从构建的流对象中发出值