ReactNative successfully installed, but it does not start with WebStorm

When I try to create a ReactNative application for my devices, I get the following:

BUILD SUCCESSFUL

Total time: 25.191 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Starting the app (adb shell am start -n com.neborofeed/com.neborofeed.MainActivity.../bin/sh: adb: command not found

The application is installed on my device, but it does not start automatically. When I copy this command to the terminal adb shell am start -n com.neborofeed/com.neborofeed.MainActivity, the application starts as expected.

+4
source share
3 answers

It seems that the script cannot find adb, have you added PATH to yours ~/.bash_profileor similar?

If you did not try to run:

echo "export PATH=\$PATH:/Users/${USER}/Library/Android/sdk/platform-tools/" >> ~/.bash_profile

If you have your sdk in a different directory, update the path in the above command.

+2
source

android , , -, react-native run-android React Native

0

I tried with this, then it worked for me after the MAC reboot. It is noted: do not forget to reboot your MAC

enter image description here

0
source

Source: https://habr.com/ru/post/1685628/


All Articles