react-native run-android shows BUILD SUCCESSFUL but exits the process
See original GitHub issueReact Native version: 0.61.1 Operational System: Ubuntu 18.04
What I did
- Followed the documentation steps to get started with React Native CLI Quickstart
- Added my user tu the group of the /dev/kvm
- Deleted the node_modules and ran
sudo npm install
. - Ran
sudo chmod -R 777 ...
to the project folder (AwesomeProject) and the node_modules.
Problem
I could fix a bunch of problems looking up online but I still can’t run the project. I am opening my AVD and running the command react-native run-android
, it seems to go right but exits the process and my project doesn’t run.
Here’s what I get: (terminal view)
kbmelo@kbmelo:~/Documents/AwesomeProject$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 863 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...
> Task :app:installDebug
06:37:50 V/ddms: execute: running am get-config
06:37:50 V/ddms: execute 'am get-config' on 'emulator-5554' : EOF hit. Read: -1
06:37:50 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'Galaxy_Nexus_API_28(AVD) - 9' for app:debug
06:37:50 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554'
06:37:50 D/Device: Uploading file onto device 'emulator-5554'
06:37:50 D/ddms: Reading file permision of /home/kbmelo/Documents/AwesomeProject/android/app/build/outputs/apk/debug/app-debug.apk as: rwxrwxrwx
06:37:50 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
06:37:51 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1
06:37:51 V/ddms: execute: returning
06:37:51 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
06:37:51 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1
06:37:51 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 3s
27 actionable tasks: 2 executed, 25 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.awesomeproject/.MainActivity }
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
"react-native start" works, but crashes while ...
In 2nd terminal, I run react-native run-android and the server crashes (in 1st terminal) and the 2nd terminal can either show error or...
Read more >Speeding up your Build phase
If you're using the React Native CLI, you can use the --active-arch-only flag together with the run-android command.
Read more >Known issues with Android Studio and Android Gradle Plugin
Native debugger crashes with "Debugger process finished with exit code 127". This error occurs on Linux-based platforms when starting the native debugger. It ......
Read more >It says build successful but then it stops running after. Can ...
Nothing's wrong with this screenshot. It opens new node window -> builds, installs and opens debug APK file -> exit. Sometimes, it doesn't ......
Read more >npx react-native run-android build failed
Hint: You can also use the React Native CLI to generate and run a Release build (e.g. npx react-native run-android --variant=release). Connecting to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kbmelo the new version in react native is not start node server and run your project after success build you must run node server with
react-native start
and open your projectClosing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.