SQLiteException: no such table exists

前端 未结 2 1697
無奈伤痛
無奈伤痛 2021-01-16 18:16

I am trying to create a SQLite database within my android app, but my code consistently throws a \"SQLiteException\" saying that no such table exists. I am new to SQL, but I

2条回答
  •  醉梦人生
    2021-01-16 18:53

    It works fine in my computer with your code. so I guess that you change the TABLE name during your development. and just run the program again with eclipse's RUN command. So the application was not a fresh install. but you don't implement the onUpgrade() correctly.

    to solve your problem you met quickly.

    1. uninstall the program with adb uninstall
    2. reinstall the program.

提交回复
热议问题