Saturday, September 23, 2017

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

Leave a Comment

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.

2 Answers

Answers 1

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.

Answers 2

you run your app from android studio or another editor like web storm you should use react-native run-android from React Native project folder

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment