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

Can't import HealthConnectPermissionDelegate into Java code #67

Closed
KthProg opened this issue Mar 1, 2024 · 2 comments · Fixed by #110
Closed

Can't import HealthConnectPermissionDelegate into Java code #67

KthProg opened this issue Mar 1, 2024 · 2 comments · Fixed by #110

Comments

@KthProg
Copy link

KthProg commented Mar 1, 2024

Describe the bug
I'm trying to add the code for v2 to my main activity, but my project is in Java not Kotlin. The dev.matinzd.healthconnect.permissions project doesn't appear in Android Studio (I have Kotlin-android plugin set up), and I can't import the HealthConnectPermissionDelegate class.

To Reproduce
Steps to reproduce the behavior:
Create fresh React Native project in version that uses Java. Install v2 of this library. Note that the code doesn't appear in Android Studio and you can't import the classes.

Expected behavior
I can import the class and use the example in the readme but in Java.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment:

  • Health Connect Version: 2.0.0
  • React Native Version: 0.72.6
  • New architecture enabled: Yes?
@KthProg
Copy link
Author

KthProg commented Mar 1, 2024

Sorry about that, I just had to sync gradle.

@KthProg
Copy link
Author

KthProg commented Mar 1, 2024

Closed, synced and everything worked

@KthProg KthProg closed this as completed Mar 1, 2024
@matinzd matinzd linked a pull request Jun 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant