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 no longer supports --configuration=release

See original GitHub issue

Description

Documentation for Testing the release build of your app for Android seems to be outdated.

Concretely, the flag --configuration does not exist anymore.

Reproduction

Running react-native run-android --configuration=release gives me:

  error: unknown option `--configuration'

Solution

Replacing configuration flag with variant flag works.

react-native run-android --variant=release

Additional Information

  • React Native version: 0.42.0
  • Platform: Android
  • Operating System: MacOS 10.12.3

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:21
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fauna5commented, Apr 13, 2017

Just tripped over this too. Would be great to update it

1reaction
sungwonchocommented, Mar 16, 2017

@laalaguer I fixed this in https://github.com/facebook/react-native/pull/12699 but it seems that the doc has not been released yet. Let’s close this when the updated version is released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with react-native run-android --configuration Release
Based on the documentation, "installRelease" gradle task will only available after editing the app's gradle at android/app/build.gradle with ...
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 >
Get Started with React Native - Visual Studio App Center
You're using a React Native project that runs React Native 0.34 or later. · You're targeting devices that are running on Android Version...
Read more >
Create and edit run/debug configurations - Android Developers
You can share a run/debug configuration (but not a template) through your version control system. For more information about how to share a...
Read more >
Instrument mobile apps with Dynatrace React Native plugin
If you're upgrading to React Native 0.70+ or using the @react-native-community/cli 9.x+ version, note that our automated script running before every 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