Description
Version:1.2.1
Exception:
FATAL EXCEPTION: main Process: philm.vilo.im, PID: 18973 java.lang.RuntimeException: Unable to create application com.android.APP: io.objectbox.exception.DbException: Schema entity could not be verified for key 2 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4812) at android.app.ActivityThread.access$1700(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5637) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) Caused by: io.objectbox.exception.DbException: Schema entity could not be verified for key 2 at io.objectbox.BoxStore.nativeCreate(Native Method) at io.objectbox.BoxStore.<init>(BoxStore.java:190) at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:270) at com.objectbox.manager.ObjectBoxManager.init(ObjectBoxManager.java:51) at com.android.App.onCreate(App.java:154) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4809) at android.app.ActivityThread.access$1700(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5637) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Exception Line:
BoxStoreBuilder builder = MyObjectBox.builder().baseDirectory(new File(TietieFileSystem2.sLocalRoot)); boxStore = builder.build(); if (BuildConfig.DEBUG) { new AndroidObjectBrowser(boxStore).start(context); }
I try to specify the location of where the DB files should be stored, when open app next time , this Exception will be happen. And I can find the mdb file in the dir, This cannot use in this way?