Stream: hapi
Topic: Parsing new questionnaire
Awais Akhtar (Dec 07 2016 at 15:30):
Hi,
I am getting problem parsing simple questionnaire on android((hapi 2.1)) which says:
Unresolved exception class when finding catch block: com.google.gson.JsonSyntaxException
Tried to debug: found it on this line: Gson e = (new GsonBuilder()).disableHtmlEscaping().create();
in GsonStrucutre.class
Any idea what can be the cause?
have validated questionnaire json online as well its fine.
James Agnew (Dec 07 2016 at 16:11):
I've never seen that problem.. weird!
Do other resource types work? I mean that sounds to me more like an Android library issue or something. Can you verify what version of Gson is getting bundled into your app? What version of the android runtime are you building against?
Awais Akhtar (Dec 07 2016 at 17:11):
android sdk 23
Awais Akhtar (Dec 07 2016 at 17:12):
will check for other resources and Gson version and let you know, thanks
Awais Akhtar (Jan 17 2017 at 15:36):
still can't resolve: Failed resolution of: Lcom/google/gson/GsonBuilder; :(
Awais Akhtar (Jan 17 2017 at 15:37):
multidex is enabled
Awais Akhtar (Jan 17 2017 at 15:38):
not just for questionnaire but for any resource
Awais Akhtar (Jan 17 2017 at 15:59):
working, had to clear gradle build caches :D
Last updated: Apr 12 2022 at 19:14 UTC