H.B Lee
H.B Lee

Reputation: 1

How to solve sqlite_error

I used an android studio and got a below message. but I'm don't Know..... what should I do?

***E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.mygallery, PID: 1315 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mygallery/com.example.mygallery.MainActivity}:** android.database.sqlite.SQLiteException: no such column: datetakenDESC (code 1 SQLITE_ERROR): ,

Upvotes: 0

Views: 39

Answers (2)

user12637469
user12637469

Reputation:

the Column name is incorrect check the check that the letters are uppercase and lowercase

Upvotes: 1

touhid udoy
touhid udoy

Reputation: 4442

You have missed a space here datetakenDESC, so Sqlite engine thinks this as a column name. This should be datetaken DESC

Upvotes: 0

Related Questions