error Failed to install the app.
Make sure you have an Android emulator running
또는
Failed to launch emulator.
$ npx @react-native-community/cli doctor ->
Common
✓ Node.js
✓ yarn
✖ Watchman - Used for watching changes in the filesystem when in development mode
- Version found: 2021.11.15.00
- Version supported: 4.x
Android
✓ JDK
✓ Android Studio - Required for building and installing your app on Android
✓ Android SDK - not Found
iOS
✓ Xcode - Required for building and installing your app on iOS
✓ CocoaPods - Required for installing iOS dependencies
● ios-deploy - Required for installing your app on a physical device with the CLI
1. sudo chmod 755 android/gradlew
2. vi ~/.zshrc 에서 path 추가하기
1. brew install cask
2. brew cask install android-sdk
✘ sumin@gimsumin-ui-MacBookPro ~/Desktop/bbatalk-rn side ± npx @react-native-community/cli doctor
Common
✓ Node.js
✓ yarn
✖ Watchman - Used for watching changes in the filesystem when in development mode
- Version found: 2021.11.15.00
- Version supported: 4.x
Android
✓ JDK
✓ Android Studio - Required for building and installing your app on Android
✓ Android SDK - Required for building and installing your app on Android
✓ ANDROID_HOME
iOS
✓ Xcode - Required for building and installing your app on iOS
✓ CocoaPods - Required for installing iOS dependencies
● ios-deploy - Required for installing your app on a physical device with the CLI
Errors: 1
Warnings: 1
Attempting to fix 1 issue...
Common
✔ Watchman
Failed to install the app. Make sure you have the Android development environment set up
-> sudo chmod 755 android/gradlew
npx @react-native-community/cli doctor
adb reverse tcp:8081 tcp:8081