Open dmmearns opened 7 years ago
@gorgon
Changing destroy() in BillingManager form: public void destroy() { mBillingClient.endConnection(); }
to: public void destroy() { if (mBillingClient.isReady()) { mBillingClient.endConnection(); } } seems to have fixed this.
I have the same problem. Some information from Firebase attach.
Codelab is implemented to be as short as possible, so it doesn't handle the rotation properly. Please see TrivialDrive_v2 implementation for proper implementation. However, I agree, probably we need to add the same check inside the codelab for its next release.
I ran the app on an emulator (Nexus 5x API 25). On-screen rotation, I got the attached error. I'm guessing emulators can't connect to billing services? I got an error code 3 from onBillingSetupFinished(). Not a problem on my physical device.
log.txt