org.litepal.exceptions.DatabaseGenerateException: can not find a class named org.litepal.model.Table

 bug record:

When using litepal, the error org.litepal.exceptions.DatabaseGenerateException: can not find a class named org.litepal.model.Table

Later, it was found that it was caused by adding confusion in the build, so you need to add a statement to your own confusion file:


proguard-rules.pro (pointed by the green arrow)
-libraryjars libs/litepal-1.4.1.jar
-dontwarn org.litepal.**
-keep class org.litepal.** {*; }

 

Guess you like

Origin blog.csdn.net/LoveFHM/article/details/130685416