当我在 Xamarin Android 播放器中运行该应用程序时,它工作得很好,但是当我在设备上运行时,我收到以下错误:
错误 1 (sqlite): CREATE TABLE main."custScanned" (z_rv INTEGER NULL UNIQUE REFERENCES "z$rv$1483152329"(z_rv) DEFERRABLE INITIALLY DEFERRED, "Id" integer primary key NOT NULL, "custNumber" text COLLATE NOCASE, "scannedDate " text COLLATE NOCASE ): 表 "custScanned" 已经存在 jni/../../../../..//build/android/core/jni/../../../../ src/core/sg/sg_sqlite.c:304 jni/../../../../..//build/android/core/jni/../../../../src /core/client/zum_sync.c:558 jni/../../../../..//build/android/core/jni/../../../../src/核心/客户端/zum_sync.c:2219 jni/../../../../..//build/android/core/jni/../../../../src/core /client/zum_sync.c:3889 jni/../../../../..//build/android/core/jni/../../../../src/core/客户端/zum_sync.c:4382 jni/../../../../..//build/android/core/jni/../../。./../src/core/client/zum_sync.c:7703 jni/../../../../..//build/android/core/jni/../../.. /../src/core/client/zum_sync.c:7763 jni/../../../../..//build/android/core/jni/../../../ ../src/core/client/zum_sync.c:8871 jni/../../../../..//build/android/core/jni/../../../. ./src/core/client/zum_sync.c:9227
当我查看设备上的 LogCat 时,它说表custScanned
已经存在。我认为这就是同步的重点:将数据发送到服务器并将数据从服务器添加到设备上的现有表中。