I was trying out React Native's Getting Started guide. After completing the installation, I tried to run the application.
It seems that while the application had successfully been deployed to the virtual device, the debugger did not attach / the app did not automatically start.
I am running on Ubuntu 16.04 LTS. Any ideas?
My terminal output is below.
Installing APK 'app-debug.apk' on 'emulator-5554 - 7.1' Installed on 1 device.
BUILD SUCCESSFUL
Total time: 7.922 secs
This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html /bin/sh: 1: adb: not found Starting the app (adb shell am start -n com.awesomeproject/.MainActivity...
Nothing happens, and I get the red screen of death when I try to run the application from the virtual device. I also explored this solution. Thanks in advance
I met the same issue, for me, I solved it by running the following config:
export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
reference: https://facebook.github.io/react-native/docs/getting-started.html
Thought I would come back to close my question. My solution:
It seems that ADB had not been installed (didn't know this had to be done manually). Subsequently, I had to manually start the packager.
The actions I took:
sudo apt install adb
react-native start
react-native run-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With