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 dev mode not working

See original GitHub issue

Description

For some reason, my app doesn’t run in dev mode.

React Native version:

System:
    OS: macOS 10.15.2
    CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
    Memory: 60.51 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.4.0 - /usr/local/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 24, 25, 26, 27, 28
      Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6392135
    Xcode: 11.3/11C29 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.13.1 => 16.13.1 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    react-native-clean-project: 3.2.4
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

Steps To Reproduce

npx react-native run-android

Expected Results

Run on dev mode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
fedu44commented, Oct 16, 2020

I had the same problem, it was fixed by deleting the line: import com.facebook.react.BuildConfig; from the MainApplicarion.java

1reaction
github-actions[bot]commented, Apr 22, 2020
:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.
Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native run-android dev mode not working - Stack Overflow
I'm using react-native run-android but my app crashes on debug mode while it works fine in release mode. It's not connected to bundler...
Read more >
Running On Device - React Native
Let's now set up an Android device to run our React Native projects. Go ahead and plug in your device via USB to...
Read more >
Debugging - Expo Documentation
You can debug React Native apps using the Chrome debugger tools. Rather than running your app's JavaScript on your phone, it will instead...
Read more >
React Native for Android development on Windows
If you want to run your project on an Android emulator, you shouldn't need to take any action as Android Studio installs with...
Read more >
How to Run React Native App On Real Device Android
If you are doing some changes and want to see in your device you have to enable the Hot/Live Reloading which can be...
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