Skip to content

Instantly share code, notes, and snippets.

@heapwalker
Last active July 15, 2022 03:00
Show Gist options
  • Save heapwalker/4509349770dd6d04fb2cba39d393f1c4 to your computer and use it in GitHub Desktop.
Save heapwalker/4509349770dd6d04fb2cba39d393f1c4 to your computer and use it in GitHub Desktop.
plantinspection-app
➜ plantinspection-app git:(main) ✗ npx react-native link
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-code-push: https://microsoft.github.io/code-push
- rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
info Linking assets to ios project
info Linking assets to android project
success Assets have been successfully linked to your project
➜ plantinspection-app git:(main) ✗ npx react-native run-android
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-code-push: https://microsoft.github.io/code-push
- rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-camera (to unlink run: "react-native unlink react-native-camera")
- react-native-code-push (to unlink run: "react-native unlink react-native-code-push")
- react-native-config (to unlink run: "react-native unlink react-native-config")
- react-native-device-info (to unlink run: "react-native unlink react-native-device-info")
- react-native-i18n (to unlink run: "react-native unlink react-native-i18n")
- react-native-image-resizer (to unlink run: "react-native unlink react-native-image-resizer")
- react-native-touch-id (to unlink run: "react-native unlink react-native-touch-id")
- react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1134 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: spawnSync ./gradlew EACCES
at Object.spawnSync (node:internal/child_process:1109:20)
at spawnSync (node:child_process:803:24)
at execFileSync (node:child_process:846:15)
at runOnAllDevices (/Users/ryan/workspace/gammon_plant_inspection/plantinspection-app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:74:39)
at buildAndRun (/Users/ryan/workspace/gammon_plant_inspection/plantinspection-app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
at /Users/ryan/workspace/gammon_plant_inspection/plantinspection-app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command.handleAction (/Users/ryan/workspace/gammon_plant_inspection/plantinspection-app/node_modules/react-native/node_modules/@react-native-community/cli/build/cliEntry.js:160:7)
➜ plantinspection-app git:(main) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment