java.lang.RuntimeException

Unable to start activity ComponentInfo{com.pfc.android/com.pfc.android.Prueba}: android.database.sqlite.SQLiteException: no such column: _id: , while compiling: SELECT _id, nombre, telefono, mail FROM t_contactos

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web211

  • via Stack Overflow by Kitinz
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pfc.android/com.pfc.android.Prueba}: android.database.sqlite.SQLiteException: no such column: _id: , while compiling: SELECT _id, nombre, telefono, mail FROM t_contactos at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) at android.app.ActivityThread.access$2100(ActivityThread.java:116) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4203) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) at dalvik.system.NativeStart.main(Native Method) Caused by: android.database.sqlite.SQLiteException: no such column: _id: , while compiling: SELECT _id, nombre, telefono, mail FROM t_contactos at android.database.sqlite.SQLiteProgram.native_compile(Native Method) at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59) at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118) at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1006) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:964) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1041) at com.pfc.android.DataBaseAccess.getAllContact(DataBaseAccess.java:97) at com.pfc.android.Prueba.onCreate(Prueba.java:21) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    filipebatistafilipebatista
    11 times, last one
    Indri YunitaIndri Yunita
    2 times, last one
    justCodeitjustCodeit
    58 times, last one
    RiyazRiyaz
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    14 more bugmates