Closed weex closed 2 years ago
can you add the output of npx react-native info
to the issue?
See a few Not Founds below. I don't do mobile dev usually so that might be why I'm missing something.
$ npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 11.6.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 45.94 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.2 - /Users/dsterry/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
I notice you don't have the android SDK installed correctly, or at all. Try following: https://reactnative.dev/docs/environment-setup completely, and then try running android again! This repo assumes you have react native set up. I can add a note about that to the README.
After you do the react native setup, let me know if you're still having the issue and I can help further :)
Just updated the readme with prerequisites of adding react native here b5762bad50f8ac166bb4bd624fc58fd3e4b47097
Ok, I installed react-native and Android Studio and got much further. App is crashing now so created a new issue.
Setting this up on Mac OS X Big Sur 11.6.1 with node version v16.13.0 and ran the commands in the readme until this one failed. Installed signal-exit with
npm install -g signal-exit
but that didn't help.