If Crashlytics shows an IllegalStateException with the message “This stopwatch is already running” coming from the Play Billing Library, you have hit a known bug in version 8.0.0 that shows up when automatic service reconnection is enabled. Google marked it fixed from 8.1.0 on, and I moved my app to 8.3.0. Here is what the crash looked like, how I connected it to the library, and what to check in your own project.
What the crash looked like
I check Crashlytics for every new release. For our Mahjong game Tilelings the report was tiny: two events from one user, only on version 1.1.0, and every other number in the dashboard was clean. The exception was an IllegalStateException with the text “This stopwatch is already running”. The top stack frames were inside obfuscated Billing Library classes, in the callback that runs when the billing service disconnects.
Two events from one person is easy to ignore.…