0
votes

Hi, I'm a beginner with React Native, while running react-native run-android, this error was returned.

BUILD SUCCESSFUL

Total time: 15.473 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html Running /home/gustavo/Android/Sdk/platform-tools/adb -s XXXXXX reverse tcp:8081 tcp:8081

Starting the app on XXXXXXX (/home/gustavo/Android/Sdk/platform-tools/adb -s XXXXXXX shell am start -n com.aa/com.aa.MainActivity)... Starting: Intent { cmp=com.aa/.MainActivity }

**but nothing works**

before it worked.

I already uninstalled the app from my phone.

I've run the command "adb -s XXXXX reverse tcp: 8081 tcp: 8081"

I already deleted the folder node_modules and executed the command "sudo npm install"

I believe it is on the cell phone as it started to happen this after having done some biuld over wifi. Does anyone know what can it be?

enter image description here
enter image description here

2

2 Answers

1
votes

You need to start the development server with npm start in your project.

Make sure that the app is already installed on your phone, so it can communicate with the dev server.

-1
votes

Check the output of the terminal window running the development bundler. It’s likely you just have a syntax error in your code.