Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No static method sdkStatus$default error on first use #19

Open
maxbeech opened this issue Oct 14, 2023 · 0 comments
Open

No static method sdkStatus$default error on first use #19

maxbeech opened this issue Oct 14, 2023 · 0 comments

Comments

@maxbeech
Copy link

Hi there,

Thanks for the package!

When I try to follow the installation steps and call isApiSupported(), I get the following error:

E/AndroidRuntime( 8275): FATAL EXCEPTION: main
E/AndroidRuntime( 8275): java.lang.NoSuchMethodError: No static method sdkStatus$default(Landroidx/health/connect/client/HealthConnectClient$Companion;Landroid/content/Context;Ljava/lang/String;ILjava/lang/Object;)I in class Landroidx/health/connect/client/HealthConnectClient$Companion; or its super classes (declaration of 'androidx.health.connect.client.HealthConnectClient$Companion' appears in /data/app/~~txFNxEdUuEIQMAPRRURcWQ==/0NjkO8==/base.apk)
E/AndroidRuntime( 8275): 	at dev.duynp.flutter_health_connect.FlutterHealthConnectPlugin.onMethodCall(FlutterHealthConnectPlugin.kt:82)
E/AndroidRuntime( 8275): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/AndroidRuntime( 8275): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime( 8275): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/AndroidRuntime( 8275): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime( 8275): 	at android.os.Handler.handleCallback(Handler.java:942)
E/AndroidRuntime( 8275): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8275): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime( 8275): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime( 8275): 	at android.app.ActivityThread.main(ActivityThread.java:7918)
E/AndroidRuntime( 8275): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8275): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime( 8275): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process ( 8275): Sending signal. PID: 8275 SIG: 9

Any ideas why this occurs please? I've double and triple checked I've followed the installation instructions correctly, but I guess I must be missing something.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant