Closed shamilatesoglu closed 6 years ago
By disabling multidex and deleting -keep class package.my.app.data.Kayit
from proguard-rules.pro
, I was able to make the error go away but this time it falsely reads data. What could be the reason behind this?
According to the error message Didn't find class "package.my.app.a.c"
here is what happened:
my.app.a.c
and not for the my.app.data.Kayit
. Kayit
. And at this moment PaperDb has thrown an exception because of the class my.app.a.c
no longer exist in the new build. The solutions:
Kayit
class at the exact same location with the same name as expected - my.app.a.c
and try to reread data and save under proper class name. I have tried to read the data with the additional Proguard rule after the error showed up. But I got the idea thanks to you :D. I did the first solution you provided, the error don't show up but this time it falsely reads the data, like it got corrupted or something. What could be the reason behind this? Thank you very much anyways. I should have included my data class in proguard file in the first place.
It was fine until I updated my application. In my data class, I had to override equals() method, and added some transient fields, which I think shouldn't be the issue but I might be wrong. I am stuck with this for over three days and couldn't find any solution.
Here's my MainActivity's
configurePaperDatabase
method:Here's my DataManager class's read method:
Here's my data class:
And here's the output:
I also use Proguard and added
-keep class package.my.app.data.Kayit
inproguard-rules.pro
after I came upon the error, but that didn't make the error go away too. Also, I had to enable multidex as my app got bigger with some of Google's services. I couldn't find any solution. And I don't know if this is the right place but, I really need help.