Reputation: 87
I am using react-native 0.60
version and my Gradle version is 5.4.1
. Now I'm trying to extract signed apk. When I execute, all the steps the apk build successfully. But When I checking this path F:\React Native\AwesomeProject1\android\app\build\outputs\apk
please check this screenshot https://prnt.sc/p391mr.
Upvotes: 2
Views: 1489
Reputation: 2638
Use this command to generate release apk
react-native run-android --variant=release
Note that --variant=release
is only available if you've set up signing as described above.
You can kill any running packager instances, since all your framework and JavaScript code is bundled in the APK's assets.
Please follow this link
https://facebook.github.io/react-native/docs/signed-apk-android
You using this command
$ cd android
$ ./gradlew bundleRelease
You only generate android apk bundle (AAB)not an apk.The generated AAB can be found under
android/app/build/outputs/bundle/release/app.aab
Upvotes: 1
Reputation: 6052
On windows if you're going to use gradlew
directly you need to run the windows variant of the command. See https://developer.android.com/studio/build/building-cmdline
So you should be running gradlew bundleRelease
From your screenshot you are running the *nix variant of ./gradlew bundleRelease
. Note the removal of the leading ./
in the Windows version.
Upvotes: 0