android - 华为云数据库创建对象类型()崩溃

标签 android kotlin huawei-mobile-services huawei-developers appgallery-connect

尝试使用下面的函数:

public void createObjectType() {

    try {
        mCloudDB.createObjectType(ObjectTypeInfoHelper.getObjectTypeInfo());
    } catch (AGConnectCloudDBException exp) {
        System.out.println("##error " + exp.toString());
    }
}

崩溃日志:

D/NaturalBase: CreateObjectType: ObjectType count: 19, version: 19

E/NaturalBase: CreateObjectType: ObjectType version downgrade is not supported. current version: 86

E/AGConnectCloudDB: Failed to create object type into the AGCConnectCloudDB.

D/AndroidRuntime: Shutting down VM

但是我的 ObjectType 只有 19,这是怎么回事?

最佳答案

在崩溃日志中:

ObjectType version downgrade is not supported.

错误日志显示问题是由于你的项目中Object_TYPE_VERSION86降级到19以及覆盖安装在您的手机上。

所以您可以尝试卸载Object_TYPE_VERSION86的应用,重新安装可能会解决您的问题。

关于android - 华为云数据库创建对象类型()崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68462898/

相关文章:

android - BitmapFactory:无法解码流:java.io.FileNotFoundException

android - 如何通过 jobScheduler 在 android oreo 上处理后台隐式广播

android - SOAP 过时了吗?

android - 函数的返回类型为 'Future<Station>',但没有以return语句flutter结尾

kotlin - ArraysJVM.kt VS _ArraysJVM.kt

android - 如果华为设备同时支持 GMS 和 HMS 核心,那为什么 HMS 核心不工作?

android - 华为 JNI 上的 std::exception SIGSEGV

android - ZXing 与 Google Play 服务愿景

android - 参数的类型必须是带有 @Entity 注释的类或其集合/数组

Android Hilt - 如何注入(inject) viewModelScope