- Code: Select all
ReplyBase reply = gson.fromJson(jo, ReplyBase.class);
I added a "gson = new Gson();" in the class's constructor, and it began working. It seems impossible that this is simply a bug - is there another explanation? A difference in the way singletons end up getting compiled between Eclipse and Android Studio or something? Am I going to run into problems after adding this gson initialization?