FHIR Chat · Parsing new questionnaire · hapi

Stream: hapi

Topic: Parsing new questionnaire


view this post on Zulip 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.

view this post on Zulip 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?

view this post on Zulip Awais Akhtar (Dec 07 2016 at 17:11):

android sdk 23

view this post on Zulip Awais Akhtar (Dec 07 2016 at 17:12):

will check for other resources and Gson version and let you know, thanks

view this post on Zulip Awais Akhtar (Jan 17 2017 at 15:36):

still can't resolve: Failed resolution of: Lcom/google/gson/GsonBuilder; :(

view this post on Zulip Awais Akhtar (Jan 17 2017 at 15:37):

multidex is enabled

view this post on Zulip Awais Akhtar (Jan 17 2017 at 15:38):

not just for questionnaire but for any resource

view this post on Zulip 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