无法将请求编组到 JSON,Amazon AWS

Unable to marshall request to JSON, Amazon AWS

我在 android 上使用 amazon aws sns 推送通知,一切正常,我能够在 phone(棒棒糖 os)上发送和接收通知,当我使用 (jellybean os) 在设备上安装应用程序时,应用程序在我调用此

时崩溃

CreatePlatformEndpointResult result = pushClient.createPlatformEndpoint(cpeReq);

错误显示 Unable to marshall request to JSONjava.lang.NoClassDefFoundError: com.google.gson.stream.JsonWriter

我添加了 gson 库,但问题仍然存在。

编辑:

我通过在我的案例中使用最新的 gcm 库 8.4.0 并将 gradle 升级到 2.10

解决了这个问题

我通过在我的案例中使用最新的 gcm 库 8.4.0 并将 gradle 升级到 2.10

解决了这个问题