AndrewDongminYoo / react-native-step-counter

[리액트 네이티브 라이브러리] 사용자의 걸음 수를 계산합니다. Android는 StepCounter (or Accelerometer) 센서 API를, iOS는 CoreMotion CMPedometer 를 사용하여 걸음 수를 측정합니다.
https://andrewdongminyoo.github.io/react-native-step-counter/
MIT License
32 stars 10 forks source link

The package '@dongminyu/react-native-step-counter' doesn't seem to be linked #35

Closed mauriciolcs closed 1 year ago

mauriciolcs commented 1 year ago

React Native Step Counter New Issue

Expected Behavior

Actual Behavior

The package '@dongminyu/react-native-step-counter' doesn't seem to be linked. Make sure:

- You have the Android development environment set up: `https://reactnative.dev/docs/environment-setup.`
- Use the "npx react-native clean" command to clean up the module\'s cache and select the "watchman", "yarn", "metro", "android", "npm" options with comma-separated. Re-Install packages and re-build the app again .
- You rebuilt the app after installing the package
- You are not using Expo Go

If none of these fix the issue, please open an issue on the Github repository: https://github.com/AndrewDongminYoo/react-native-step-counter

Steps to Reproduce the Problem

  1. yarn create react-native-app my-app
  2. yarn add @dongminyu/react-native-step-counter
  3. go to node_modules/@dongminyu/react-native-step-counter/android/build.gradle and change all compileOptions from version 1_8 to 11
  4. in the same file, remove the toolchain, as described in this PR
  5. setup the package at any screen
  6. npx react-native run-android
  7. access the screen and get the error

Specifications

System:
  OS: macOS 13.4.1
  CPU: (8) arm64 Apple M1
  Memory: 97.28 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 16.17.1
    path: ~/.nvm/versions/node/v16.17.1/bin/node
  Yarn:
    version: 1.22.19
    path: ~/bemobile/mobile/fique-bem/apps/mobile/node_modules/.bin/yarn
  npm:
    version: 8.15.0
    path: ~/.nvm/versions/node/v16.17.1/bin/npm
  Watchman:
    version: 2023.07.03.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.11.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK:
    API Levels:
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
    Build Tools:
      - 28.0.3
      - 30.0.3
      - 31.0.0
      - 33.0.0
    System Images:
      - android-30 | Google Play ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9014738
  Xcode:
    version: 14.3/14E222b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.16
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.4
    wanted: 0.72.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
AndrewDongminYoo commented 1 year ago

Can't you still connect to the library after this package update? To check the problem, can you clone and run the code from AndrewDongminYoo/walking_tracker, the standalone sample app for this library? As far as I ran, the app was able to run without the “new_architecture” environment variable.

mauriciolcs commented 1 year ago

@AndrewDongminYoo I am sorry, i forgot to close this issue after you merged my pull request