I have a very weird bug.
In my Android app, I deserialize an object stored in the user preferences using :
Type type = new TypeToken<ArrayList<CodableObject>>() {}.getType(); // Line 1
ArrayList<CodableObject> codableObjects = gson.fromJson(json, type); // Line 2
Everything works very well when I compile my app in debug mode, but when I compile it in release mode, I get the following error on Line 2:
IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 73366 path $[0].e.n
Why do I have a crash in release mode and not in debug mode ??? How to solve/debug this problem ?
Thanks for your help !