Reputation: 345
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.
What went wrong: Failed to load native library 'libnative-platform.so' for Linux i386.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html
Upvotes: 2
Views: 19988
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
Reputation: 181
Have you tried official documentation.I think you are trying to run this command before setting up the signing configuration.
Upvotes: 0