Ruchira Chamara
Ruchira Chamara

Reputation: 345

React-native build failed

I am experiencing the following difficulty with the react native application. If someone can help with a solution it's appreciated.

JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

Upvotes: 2

Views: 19988

Answers (2)

Abhishek Garg
Abhishek Garg

Reputation: 3242

Have tried to delete android/app/build folder and node_modules folder.

after removing them , in your root folder of project run following commands in terminal

npm install --save

react-native link

react-native run-android

After still does not work run following commands after running above commands

adb devices 

adb reverse tcp:8081 tcp:8081

if web server is not running

react-native start

Upvotes: 6

Naleen Dissanayake
Naleen Dissanayake

Reputation: 181

Have you tried official documentation.I think you are trying to run this command before setting up the signing configuration.

Upvotes: 0

Related Questions