Closed bhathiyaamarasinghe closed 1 year ago
'adb' is not recognized as an internal or external command,
Do you have ANDROID_HOME variable set up in path?
Put local.properties with your SDK path It helped me. And make sure to install ADB tools
@hemche and @narasimhauppala Thank u for solutions
Starting with macOS Catalina, your Mac uses zsh as the default login shell and interactive shell. You can make zsh the default in earlier versions of macOS as well. On your Mac:
Open your .zshrc file: open ~/.zshrc If .zshrc file not exist, you need to create one using touch & open. touch ~/.zshrc
put to file export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools
Save file and close restart terminal
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
✋ To keep the backlog clean and actionable, issues will be 🚫 closed if they do not follow one of the issue templates: 👉 https://github.com/facebook/react-native/issues/new/choose info Starting JS server... 'adb' is not recognized as an internal or external command, operable program or batch file. info Launching emulator... error Failed to launch emulator. Reason: No emulators found as an output of
emulator -list-avds
. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. info Installing the app...Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 33s 27 actionable tasks: 2 executed, 25 up-to-date info Connecting to the development server... warn Failed to connect to development server using "adb reverse": spawnSync adb ENOENT info Starting the app... 'adb' is not recognized as an internal or external command, operable program or batch file. error Failed to start the app. Run CLI with --verbose flag for more details. Error: Command failed: adb shell am start -n com.mobileapp/com.mobileapp.MainActivity at makeError (E:\ReactNative\UseMe_MobileApp\mobileApp\node_modules\execa\index.js:174:9)