1

I have an app that successfully runs on my device when installed locally via Android Studio. However, after uploading the app to the PlayStore and installing from there, I get a Failed to bounce to type error when querying data from Firebase. Why would the app only fail when downloaded from the PlayStore?

com.firebase.client.FirebaseException: Failed to bounce to type at com.firebase.client.DataSnapshot.getValue(Unknown Source)

Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "time" (class ciceroapps.tether.na.j), not marked as ignorable (0 known properties: ])

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • 1
    The error occurs when Firebase (specifically: the Jackon library that Firebase uses/embeds) is unable to serialize or deserialize a JSON node to a Java class. Did you specify the necessary proguard settings, to ensure the shaded classes aren't stripped and your model classes remain untouched? See http://stackoverflow.com/a/26274623/209103 – Frank van Puffelen Dec 06 '15 at 03:06
  • Extremely helpful. Thank you so much Frank! – Antonio Cicero Dec 06 '15 at 18:47
  • If that was the cause, I'll mark your question as a duplicate. – Frank van Puffelen Dec 06 '15 at 18:52
  • I believe this was my problem. How would I be able to accurately test if the application is working now without uploading the new version to the PlayStore? – Antonio Cicero Dec 08 '15 at 02:32
  • Typically the Proguard rules are applied to release builds of your apk in the build.gradle file of you app. See http://developer.android.com/tools/help/proguard.html for more info. – Frank van Puffelen Dec 08 '15 at 04:52

0 Answers0