react-native run-android no longer supports --configuration=release
See original GitHub issueDescription
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:
- Created 7 years ago
- Reactions:21
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just tripped over this too. Would be great to update it
@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.