-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] /bin/sh: 1: adb: not found #11413
Comments
you need export the path of "platform-tools" inside android sdk folder run this command with your platform-tools location and retry again |
@koraniar I export that variable, |
I've got the same bug. |
I have the same bug. |
I added |
I had the same problem I solved, then react-native run-android |
@oscar10176 solve for ubuntu 16.04 |
You need to install adb. Run command below to install. If you don't have brew installed, use this command to download that: After installing 'adb' things working fine for me. |
@facebook-github-bot answered |
Closing this issue as @chirag04 says the question asked has been answered. |
@koraniar It has to be something else, 200 years ago I have exported adb and other platform tools and still not working... My guess react-native is looking for adb somewhere else and in that case ignoring the ENVIRONMENT vars. I was right... In a Linux system, react-native scripts looks for adb at /usr/local/bin/, It ignores the Environment variables. what I did was create a symlink in /us/local/bin/
That's it |
Just also ran into the same issue setting, following resolved it for me: Add the following to your PATH: Only platform-tools do not suffice. ;) |
I added export PATH=$PATH:"/Users//Library/Android/sdk/platform-tools" to my .bash_profile. Thank you its worked for me in mac |
installing adb manually works for me |
installing worked for me, |
@oscar10176 you are a hero !!! 👍 |
I try run my first react native app with
sudo react-native run-android
command but it's return below output and app not running:As you seen it's return
/bin/sh: 1: adb: not found
two time but when I runadb devices
it's return below output:192.168.56.101:5555
is my Genymotion device I also test with my Nexus 7 but again noting run on device.I think it's a bug because I have adb but it's return
/bin/sh: 1: adb: not found
.Additional Info:
Linux Mint 17.2
Android Platform
React Native 0.39.2
The text was updated successfully, but these errors were encountered: