I had this error after I enabled the minify in my project, after two days of researching I finally found the solution,
first setup your file provider according to this documentation
and then if you enabled the proguard in your project, add these codes to your proguard rules:
-keep class **.model.** { *; }
-keep class **.models.** { *; }