Semyon Tikhonenko
Semyon Tikhonenko

Reputation: 4252

ReactNative app is successfully installed but it's not started from WebStorm

When I try to build ReactNative app for my devices I get this:

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 app is installed on my device, but it's not started automatically. When I copy this command to the terminal adb shell am start -n com.neborofeed/com.neborofeed.MainActivity, the app is started as expected.

Upvotes: 4

Views: 1018

Answers (2)

DMS-KH
DMS-KH

Reputation: 2797

I have tried with this one then work for me after restart MAC Noted: Don't forget to restart your MAC

enter image description here

Upvotes: 0

Tyler Whitman
Tyler Whitman

Reputation: 544

It's seems that the script is not able to find adb, have you added the PATH in your ~/.bash_profile or similar?

If you have not try running:

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

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

Upvotes: 2

Related Questions