Android Studio报错 “java.lang.IllegalStateException: Room cannot verify the data integrity” 解决方法

最近在Android Studio遇到以下报错:

Caused by: java.lang.IllegalStateException: Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number.

解决方法如下:
在模拟器中清理应用数据,或直接卸载app,重新安装。

你可能感兴趣的:(Android Studio报错 “java.lang.IllegalStateException: Room cannot verify the data integrity” 解决方法)