react-native run-android command not working on mac sierra
See original GitHub issue- React Native version: 0.37.0
- Platform: Android
- Operating System: Mac sierra
I tried to run react-native app on my mobile phone SAMSUNG GALAXY A7. Device’s android version is 6.0.1. I installed Android SDK through brew, and also installed Android SDK Tools, Platform-tools, Build-tools, APIs, SDK Platform for android 6.0(API23) I checked device is connected via android file transfer. I agreed usb debugging on my android phone.
When I try to run command run-android, there @@was few DeperecatonWarning.
I attach log below.
(node:4265) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. (node:4265) DeprecationWarning: Using Buffer without
newwill soon stop working. Use
new Buffer(), or preferably
Buffer.from(),
Buffer.allocUnsafe()or
Buffer.alloc()instead. JS server already running. Running adb -s ce0ee0d3 reverse tcp:8081 tcp:8081 Building and installing the app on the device (cd android && ./gradlew installDebug... 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. Go to https://facebook.github.io/react-native/docs/getting-started.html and check the Android tab for setup instructions.
Is there anything I could try to run app on android phone?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
I got mine working by deleting the android folder and running
react-native upgrade
.@corymayer Thanks! Saved my day!