Reputation: 23
Currently I'm working in a project which is using GSON Library. The problems occurs when I run my application in HTC explorer. The GSON class constructor generate the follow exception:
No-args constructor for class does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
I've tested the application in a lot of devices. In fact the application has a lot of downloads, and any one of them has any crash like this.
Any ideas? I've seen some other post but I couldn't fixed the bug.
Thanks in advance.
Upvotes: 2
Views: 452
Reputation: 17340
Don't use the GSON jar file, use the new myjson. Ans also make sure the library is selected in Order and Export (Project Properties -> Java Build Path -> Order and Export).
Hope it helps.
Upvotes: 7