question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 withoutnewwill soon stop working. Usenew Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe()orBuffer.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:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
corymayercommented, Jan 24, 2017

I got mine working by deleting the android folder and running react-native upgrade.

0reactions
simba4everyoungcommented, Jul 12, 2017

@corymayer Thanks! Saved my day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native run-android not working in mac - Stack Overflow
I got the same issue. I updated my ANDROID_HOME env variable again it worked for me. Follow this React-native android-setup documentation.
Read more >
How To Install and Setup React Native on Mac - KnowledgeHut
1. First, you need to lock the version you build with to ensure the app still works even after updates, using the following...
Read more >
React Native Setup on macOS - CloudBoost
We are going to setup a new macOS computer to run React Native and simulate ... First quit any running Android Emulators and...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix the issue for the current project, click Run > Edit Configurations and change the default JUnit configuration to only include the...
Read more >
How to Install React Native on Mac? Step by Step Guide
Open Xcode -> Preferences -> Locations tab -> install the latest version of Xcode command line tools. Step 6. Create your first react...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found