今天在做項目的搜索頁面的時候出現了no such table
第一反應就是找到報錯的地方,debug也好,檢查語句是否正確,卻一直沒找到問題,最后clean project,卸載了程序,
重新安裝后就OK了,我從一個英文網站找個解決這個問題幾個辦法
- uninstalling app
- cleaning cache / data
- changing database version number
- forcing to copy the database even if it already existed
鏈接:http://peter.grman.at/android-sqlite-exception-no-such-table/