nativescript-community / nativescript-health-data

Cross platform Health Plugin for NativeScript, using Apple HealthKit and Google Fit
Apache License 2.0
48 stars 17 forks source link

Authorization issue in Android #35

Closed prakashksp20 closed 4 years ago

prakashksp20 commented 4 years ago

The below error is shown on running this health-data plugin. How to solve this issue? Request auth error: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference com.google.android.gms.auth.api.signin.internal.zzo.zzbp(Unknown Source) com.google.android.gms.auth.api.signin.GoogleSignIn.getLastSignedInAccount(Unknown Source) com.tns.Runtime.callJSMethodNative(Native Method) com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209) com.tns.Runtime.callJSMethodImpl(Runtime.java:1096) com.tns.Runtime.callJSMethod(Runtime.java:1083) com.tns.Runtime.callJSMethod(Runtime.java:1063) com.tns.Runtime.callJSMethod(Runtime.java:1055) com.tns.gen.java.lang.Object_vendor_143618_32_ClickListenerImpl.onClick(Object_vendor_143618_32_ClickListenerImpl.java:18) android.view.View.performClick(View.java:5612) android.view.View$PerformClick.run(View.java:22285) android.os.Handler.handleCallback(Handler.java:751) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:154) android.app.ActivityThread.main(ActivityThread.java:6123) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)