java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.rcadit.foodgenie/com.example.rcadit.foodgenie.resultActivity}: android.database.sqlite.SQLiteException: near "null": syntax error (code 1): , while compiling: SELECT foodName FROM foodDB where cuisine = null & hungerLevel = null & preparationTime null & course = null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Adit R
, 1 year ago
Unable to start activity ComponentInfo{com.example.rcadit.foodgenie/com.example.rcadit.foodgenie.resultActivity}: android.database.sqlite.SQLiteException: near "null": syntax error (code 1): , while compiling: SELECT foodName FROM foodDB where cuisine = null & hungerLevel = null & preparationTime null & course = null
via Stack Overflow by Onur Ozbek
, 6 months ago
Unable to start activity ComponentInfo{myapp.onur.journeygpacalculator/myapp.onur.journeygpacalculator.MainActivity}: android.database.sqlite.SQLiteException: near "NULL": syntax error (code 1): , while compiling: CREATE TABLE semesters (_id INTEGER PRIMARY KEY AUTOINCREMENT, semester TEXT NOT NULL
via Stack Overflow by Paradon Jurng Pimon
, 2 years ago
Unable to start activity ComponentInfo{com.sweetpengiuns.simplenote/com.sweetpengiuns.simplenote.MainActivity}: android.database.sqlite.SQLiteException: near "TABLEnotes": syntax error (code 1): , while compiling: CREATE TABLEnotes(_idINTEGER PRIMARY KEY AUTOINCREMENT, timeINTEGER,contentTEXT NOT NULL);
via Stack Overflow by Calitoz
, 1 year ago
Unable to start activity ComponentInfo{com.example.carlos.application1/com.example.carlos.application1.MainActivity}: android.database.sqlite.SQLiteException: near "values": syntax error (code 1): , while compiling: select * from values
via Stack Overflow by AgentEddie99
, 9 months ago
Unable to start activity ComponentInfo{com.listviewtest.listdatabase/com.listviewtest.listdatabase.ViewListContents}: android.database.sqlite.SQLiteException: near "FROM": syntax error (code 1): , while compiling: SELECT + FROM mylist_data
via Stack Overflow by smartmouse
, 2 years ago
Unable to start activity ComponentInfo{com.example.myapp/com.example.myapp.ListMerchant}: android.database.sqlite.SQLiteException: near "Emilia": syntax error (code 1): , while compiling: Select _id,title,phone,comune from merchants where city='Reggio nell'Emilia'
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.rcadit.foodgenie/com.example.rcadit.foodgenie.resultActivity}: android.database.sqlite.SQLiteException: near "null": syntax error (code 1): , while compiling: SELECT foodName FROM foodDB where cuisine = null & hungerLevel = null & preparationTime null & course = null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

91 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 month ago
65 times, 4 months ago
11 times, 1 year ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.