Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGlen Hayes
5,798 Pointsnot serializable?
OMG information overload!
So, when trying to access the UID serial for serialver com.teamTreehouse.Treet I get the error:
Class com.teamTreehouse.Treet is not serializable
The Serializable method has been imported as per the video. I know the common practice is to post my code but at the moment I am not fussed with becoming a pro with serialization as my main goal is android app developement on a basic level(for now). I was just curious as to whether or not this was a simple coding error in general or something more complicated?
Glen Hayes
5,798 PointsThanks Christopher, I did add the implements Serializable in the class def. No real drama. Cheers
1 Answer
Mark Rae
4,503 PointsHave you consistently used com.teamTreehouse as the package name? The standard for package names is to have them be all lowercase. The serialver tool might not be finding your class due to inconsistent package naming. Even if you are consistent in using camelCase, maybe serialver automatically makes the package name lowercase because it assumes you were following the convention and just mistyped something. In any case, I'd make sure your package name is lowercase and see if that solves the issue.
Christopher Augg
21,223 PointsChristopher Augg
21,223 PointsIt could be something simple. Did you also put implements Serializable within your class definition? Posting your code could definitely help us find your issue.
Regards,
Chris