完全按照視頻內寫的代碼,但是報錯了
這是AS給出的報錯
???Caused?by:?android.database.sqlite.SQLiteException:?no?such?column:?cost_date?(code?1):?,?while?compiling:?SELECT?*?FROM?crystal_cost?ORDER?BY?cost_date?ASC
誰能幫我看看怎么解決
這是AS給出的報錯
???Caused?by:?android.database.sqlite.SQLiteException:?no?such?column:?cost_date?(code?1):?,?while?compiling:?SELECT?*?FROM?crystal_cost?ORDER?BY?cost_date?ASC
誰能幫我看看怎么解決
2017-08-27
舉報
2017-08-27
我明白了是由于之前有建立過一個錯誤的數據庫導致的,需要將原來的數據庫刪除,重新運行即可