Issue
According to the official React Native docs,
I am trying to generate a .aab
file for release. When I run the command
npx react-native build-android --mode=release
I get this error
error Unrecognized command "build-android". Did you mean "run-android"?
Solution
For react-native versions < 0.72. To generate .aab for release, you need to go to Android folder and run the following commands
.\gradlew clean
then
.\gradlew bundleRelease
According to this documentation
Answered By - Muhammad Ahmad
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.