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?