You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library logs an exception and invoke onUpdateRequestError if Update's CustomUpdateData contains an array field. For example { "name": "pink_floyd", "category": "bird", "colors": [ "one", "two" ] }
The logged exception is
java.lang.ClassCastException: com.google.gson.JsonArray cannot be cast to com.google.gson.JsonObject
at io.barracks.ota.client.UpdateCheckService$DefaultBundleAdapter.jsonObjectToBundle(UpdateCheckService.java:314)
at io.barracks.ota.client.UpdateCheckService$DefaultBundleAdapter.read(UpdateCheckService.java:286)
at io.barracks.ota.client.UpdateCheckService$DefaultBundleAdapter.read(UpdateCheckService.java:236)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:116)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:216)
at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:37)
at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:25)
at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:116)
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute(ExecutorCallAdapterFactory.java:89)
at io.barracks.ota.client.UpdateCheckService.checkUpdate(UpdateCheckService.java:177)
at io.barracks.ota.client.UpdateCheckService.onHandleIntent(UpdateCheckService.java:138)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.os.HandlerThread.run(HandlerThread.java:61)
The text was updated successfully, but these errors were encountered:
The library logs an exception and invoke onUpdateRequestError if Update's CustomUpdateData contains an array field. For example { "name": "pink_floyd", "category": "bird", "colors": [ "one", "two" ] }
The logged exception is
The text was updated successfully, but these errors were encountered: