title: Unable to marshall request to JSON, Amazon AWS
body: <p>I am using amazon aws sns for push notification on android, everything works correctly and I am able to send and receive the notifications on my phone (lollipop os), while when I install the app on a device with (jellybean os), the app crashes when I am calling this</p>
  
  <p><code>CreatePlatformEndpointResult result = pushClient.createPlatformEndpoint(cpeReq);</code></p>
  
  <p>The error says <code>Unable to marshall request to JSON</code> and <code>java.lang.NoClassDefFoundError: com.google.gson.stream.JsonWriter</code></p>
  
  <p>I included the <code>gson</code> library but the problem persists.</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I resolved this by using the latest gcm library 8.4.0 in my case and upgrading gradle to 2.10</p>