java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android Database Mapper - No such table
    via Stack Overflow by Freewister
    ,
  • Database Upgrade Failed
    via GitHub by SammysHP
    ,
  • Saving sql database entry created date
    via Stack Overflow by Gibran Gul
    ,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.main/com.main.Activity_Main}: android.database.sqlite.SQLiteException: no such table: Categories (code 1): , while compiling: SELECT * FROM Categories WHERE Categories.Id=? LIMIT 1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: android.database.sqlite.SQLiteException: no such table: Categories (code 1): , while compiling: SELECT * FROM Categories WHERE Categories.Id=? LIMIT 1 at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58) at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316) at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1163) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034) at com.activeandroid.Model.query(Model.java:306) at com.activeandroid.Model.querySingle(Model.java:332) at com.activeandroid.Model.load(Model.java:224) at com.main.Activity_Main.onCreate(Activity_Main.java:59) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)

    Users with the same issue

    filipebatista
    1 times, last one,
    Indri Yunita
    2 times, last one,
    justCodeit
    58 times, last one,
    Riyaz
    4 times, last one,
    Unknown visitor1 times, last one,
    108 more bugmates