Huawei CloudDB createObjectType() crash

Viewed 109

Try to use below function:

public void createObjectType() {

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

Crash log:

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

But my ObjectType is only 19. what's happened?

2 Answers

In the Crash log:

ObjectType version downgrade is not supported.

The error log shows that the problem is caused by the downgrading of Object_TYPE_VERSION from 86 to 19 in your project and the overwriting of the installation on your phone.

So you can try to uninstall the app whose Object_TYPE_VERSION is 86 and reinstall it may solve your issue.

Related