简体   繁体   中英

Deserializing into Object when class is in default package on android

I have an application that queries a server (not under my control). The server returns a serialized object. I have the model for the class - however the problem is that the class is in "default package"... something not recognizable by Android ClassLoader.

How can I resolve this issue?

And tell whoever created the class, possibly yourself, that Java classes within packages haven't been able to access classes not within packages since Java 1.4 came out, about eight years ago. Put the class into a package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM