Android: Sugar ORM No Such Table Exception

后端 未结 21 1085
一生所求
一生所求 2020-12-05 06:42

I am getting the No Such table exception when i am Using Sugar ORM with GPU image Android Library. I am using Gradle and Android Studio. Once i remove GPU image

21条回答
  •  萌比男神i
    2020-12-05 07:20

    As mentioned by others, Android Studio instant run might be the problem (known SugarORM issue), try to turn it off.

    However, I've had the same problem, and that wasn't sufficient for me, the problem persisted. I fixed this by changing allowBackup="true" in my manifest to false, running the app, and remove > re-install the app afterwards.

    Why I guess that's the problem: I found out my preferences were kept saved even after re-installation. If this also happens to the corrupt SQL table (due to instant run), then even re-installation wouldn't fix it. My problem was immediately fixed after changing allowBackup to false and re-installing. I'm not yet able to reproduce the error, so cannot reproduce the fix either.

    Hope this addition might help anyone from headaches like me!

提交回复
热议问题