Closed csshuai closed 6 years ago
Do you serialize class or deserialize? According to stack trace you have exception on read data. If so make sure you read the data you properly saved for the same class Test.
Sorry for my poor english. I serialize the class Test. Then read it, throw the exception. It is the same class Test.
When i add the default constructor for Test, the read is ok.
Android 8.0 API 26
Could you show complete code? Or probably test?
On Mar 22, 2018 13:22, "csshuai" notifications@github.com wrote:
Sorry for my poor english. I serialize the class Test. Then read it. It is the same class Test.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/pilgr/Paper/issues/123#issuecomment-375269946, or mute the thread https://github.com/notifications/unsubscribe-auth/AAaNIRSnP_JfD8vaSBaLZyFHuyQh_Cc0ks5tg4mLgaJpZM4S2ax0 .
I'm sorry, it's my fault.
I added the code to the build.gradle
file to cause this error
configurations.all {
resolutionStrategy.force 'org.objenesis:objenesis:2.2'
}
no problem
Serialize class: