matinzd/react-native-health-connect

Sync is not happening

Closed this issue · 4 comments

I am a beginner to Android applications. I need to use Health Connect to collect real-time data for my research. I am using your code, but when i import the application I get an error. Could you please let me know is there any initial setting I need to make in android studio?

Hi

You can follow the documentation here. Hope that helps.

I am facing the below error. Could you please help me in solving this?

  • Where:
    Script 'C:\Users\DELL\Downloads\react-native-health-connect-main\react-native-health-connect-main\example\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 413

  • What went wrong:
    A problem occurred evaluating script.

Cannot run program "node" (in directory "C:\Users\DELL\Downloads\react-native-health-connect-main\react-native-health-connect-main\example\android"): CreateProcess error=2, The system cannot find the file specified

You don't have node installed or your environment is not set up properly. If you are on Windows and you just want to experiment this on Android I suggest you to use Native solution. Setting up React Native is a bit harder to follow.

As you can see in the error your command line on Windows cannot detect where node installed or it's not installed at all.

Going to close this issue. Feel free to move this to discussions section.