android.database.sqlite.SQLiteException: no such table: CONTACT (code 1): , while compiling: SELECT * FROM CONTACT WHERE id=? LIMIT 1


Solutions on the web1087

Solution icon of github
no such table: CONTACT (code 1): , while compiling: SELECT * FROM CONTACT WHERE id=? LIMIT 1

Solution icon of stackoverflow
no such table: CONTACT (code 1): , while compiling: SELECT * FROM CONTACT WHERE id=? LIMIT 1

Solution icon of stackoverflow
via Stack Overflow by Pushpam Kumar
, 1 year ago
no such table: contact (code 1): , while compiling: SELECT * FROM contact

Solution icon of stackoverflow
via Stack Overflow by Angad
, 1 year ago
no such table: MESSAGE_REQUEST_ID_MODEL (code 1): , while compiling: SELECT * FROM MESSAGE_REQUEST_ID_MODEL WHERE id=? LIMIT 1

Solution icon of github
via GitHub by lxzliuxinzhu
, 10 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Solution icon of github
via GitHub by sicklife
, 1 year ago
no such table: snsExtInfo2 (code 1): , while compiling: SELECT userName FROM snsExtInfo2 WHERE ROWID=? LIMIT 1

Solution icon of github
via GitHub by lxzliuxinzhu
, 10 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Solution icon of stackoverflow
via Stack Overflow by Freewister
, 1 year ago
no such table: Categories (code 1): , while compiling: SELECT * FROM Categories WHERE Categories.Id=? LIMIT 1

Solution icon of github
via GitHub by 80998062
, 4 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Solution icon of stackoverflow
no such table: table (code 1): , while compiling: SELECT COUNT(*) FROM `table` WHERE `id` = ?

Stack trace

android.database.sqlite.SQLiteException: no such table: CONTACT (code 1): , while compiling: SELECT * FROM CONTACT WHERE 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 android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1240)
	at com.orm.SugarRecord.find(SugarRecord.java:192)
	at com.orm.SugarRecord.findById(SugarRecord.java:102)
	at com.example.sinha.abhishek.demoapp.Contact.<init>(Contact.java:31)
	at com.example.sinha.abhishek.demoapp.MainActivity$1.onClick(MainActivity.java:48)
	at android.view.View.performClick(View.java:4785)
	at android.view.View$PerformClick.run(View.java:19888)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5276)
	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:911)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)

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

177 times, 1 year ago
18 times, 2 months ago
11 times, 3 months ago
2 times, 4 months ago
58 times, 7 months ago
111 more bugmates