I am working on an android app using semantic kernel and I have this issue that I have been battling for 2 days now. In the semantic kernel code, the use of the newFactory() static method for prompt parsing is the root cause. I think this is not needed and newInstance() can do the job.
This github issue is talking about the problem I am facing but in another library: FasterXML/jackson-dataformat-xml#533
I have this issue when I use invokePromptAsync() but not when I use getChatMessageContentsAsync().
The problem is easy to reproduce, create a new project in android studio and use any sample that has a call to invokePromptAsync()