runtime error while accessing google api in android emulator
问题 I am trying to access the googleFit API. It seems pretty straightforward. Get the google sign-in permissions and required authorizations then query for Step count. My code doesn't seem to work. When I debug this the fitnessOption declaration part throws "source code doesn't match byte code" error. I cleaned my project, rebuild it it didn't work Android gurus, Where am I going wrong?? fun getAuthorizationAndReadData() { try { MainActivity().fitSignIn(FitActionRequestCode.READ_DATA) } catch ()