{"action":"created","issue":{"url":"https://api.github.com/repos/vals-productions/sqlighter/issues/6","labels_url":"https://api.github.com/repos/vals-productions/sqlighter/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vals-productions/sqlighter/issues/6/comments","events_url":"https://api.github.com/repos/vals-productions/sqlighter/issues/6/events","html_url":"https://github.com/vals-productions/sqlighter/issues/6","id":107220999,"number":6,"title":"Android Demo Project Error","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-18T15:10:23Z","updated_at":"2015-09-19T19:49:24Z","closed_at":null,"body":"The first time  I start the Android demo project I get the following error: \r\n\r\n```\r\n09-18 17:08:14.663 3336-3336/com.prod.vals.andr_demo_prj D/dalvikvm: Late-enabling CheckJNI\r\n09-18 17:08:14.903 3336-3336/com.prod.vals.andr_demo_prj I/dalvikvm: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged\r\n09-18 17:08:14.903 3336-3336/com.prod.vals.andr_demo_prj W/dalvikvm: VFY: unable to resolve virtual method 13345: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V\r\n09-18 17:08:14.903 3336-3336/com.prod.vals.andr_demo_prj D/dalvikvm: VFY: replacing opcode 0x6f at 0x0007\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj W/dalvikvm: VFY: unable to resolve virtual method 411: Landroid/content/res/TypedArray;.getChangingConfigurations ()I\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj W/dalvikvm: VFY: unable to resolve virtual method 433: Landroid/content/res/TypedArray;.getType (I)I\r\n09-18 17:08:14.913 3336-3336/com.prod.vals.andr_demo_prj D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002\r\n09-18 17:08:15.003 3336-3336/com.prod.vals.andr_demo_prj W/System.err: java.io.FileNotFoundException: /data/data/com.prod.vals.andr_demo_prj/databases/sqlite.sqlite: open failed: ENOENT (No such file or directory)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at libcore.io.IoBridge.open(IoBridge.java:416)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.io.FileOutputStream.<init>(FileOutputStream.java:88)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.io.FileOutputStream.<init>(FileOutputStream.java:128)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.io.FileOutputStream.<init>(FileOutputStream.java:117)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.vals.a2ios.sqlighter.impl.SQLighterDbImpl.copyDbOnce(SQLighterDbImpl.java:140)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.prod.vals.andr_demo_prj.MainActivity.onCreate(MainActivity.java:26)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.Activity.performCreate(Activity.java:5047)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.access$700(ActivityThread.java:134)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.os.Looper.loop(Looper.java:137)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:4867)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at dalvik.system.NativeStart.main(Native Method)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err: Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at libcore.io.Posix.open(Native Method)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at libcore.io.IoBridge.open(IoBridge.java:400)\r\n09-18 17:08:15.013 3336-3336/com.prod.vals.andr_demo_prj W/System.err: \t... 19 more\r\n09-18 17:08:15.154 3336-3339/com.prod.vals.andr_demo_prj D/dalvikvm: GC_CONCURRENT freed 195K, 11% free 9533K/10695K, paused 19ms+2ms, total 94ms\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj E/SQLiteLog: (1) no such table: user\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err: android.database.sqlite.SQLiteException: no such table: user (code 1): , while compiling: select id, email, name, data, height from user\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1013)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:624)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1253)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.vals.a2ios.sqlighter.impl.SQLighterDbImpl.executeSelect(SQLighterDbImpl.java:179)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.prod.vals.andr_demo_prj.Demo.dbOperations(Demo.java:42)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.prod.vals.andr_demo_prj.MainActivity.onCreate(MainActivity.java:36)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.Activity.performCreate(Activity.java:5047)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.access$700(ActivityThread.java:134)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.os.Looper.loop(Looper.java:137)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:4867)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)\r\n09-18 17:08:15.234 3336-3336/com.prod.vals.andr_demo_prj W/System.err:     at dalvik.system.NativeStart.main(Native Method)\r\n09-18 17:08:15.304 3336-3336/com.prod.vals.andr_demo_prj D/libEGL: loaded /system/lib/egl/libEGL_mali.so\r\n09-18 17:08:15.314 3336-3336/com.prod.vals.andr_demo_prj D/libEGL: loaded /system/lib/egl/libGLESv1_CM_mali.so\r\n09-18 17:08:15.324 3336-3336/com.prod.vals.andr_demo_prj D/libEGL: loaded /system/lib/egl/libGLESv2_mali.so\r\n09-18 17:08:15.474 3336-3336/com.prod.vals.andr_demo_prj D/OpenGLRenderer: Enabling debug mode 0\r\n09-18 17:08:43.021 3336-3341/com.prod.vals.andr_demo_prj D/dalvikvm: Debugger has detached; object registry had 1 entries\r\n```\r\n\r\nOn the second launch there is no error. Why is this so? Can I prevent this somehow?\r\n"},"comment":{"url":"https://api.github.com/repos/vals-productions/sqlighter/issues/comments/141701528","html_url":"https://github.com/vals-productions/sqlighter/issues/6#issuecomment-141701528","issue_url":"https://api.github.com/repos/vals-productions/sqlighter/issues/6","id":141701528,"user":{"login":"steffimueller","id":5350431,"avatar_url":"https://avatars.githubusercontent.com/u/5350431?v=3","gravatar_id":"","url":"https://api.github.com/users/steffimueller","html_url":"https://github.com/steffimueller","followers_url":"https://api.github.com/users/steffimueller/followers","following_url":"https://api.github.com/users/steffimueller/following{/other_user}","gists_url":"https://api.github.com/users/steffimueller/gists{/gist_id}","starred_url":"https://api.github.com/users/steffimueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffimueller/subscriptions","organizations_url":"https://api.github.com/users/steffimueller/orgs","repos_url":"https://api.github.com/users/steffimueller/repos","events_url":"https://api.github.com/users/steffimueller/events{/privacy}","received_events_url":"https://api.github.com/users/steffimueller/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T19:49:24Z","updated_at":"2015-09-19T19:49:24Z","body":"Is there a way to check if the database does exist?\r\n"}}