I get the above error when I use the command react-native run-android --variant=release
like it said in the react native docs. I signed my key just like it said in the docs but it's not working.
I also couldn't use the command cd android && ./gradlew assembleRelease
directly from my project folder. I had to do cd android
and then gradlew assembleRelease
From react-native documentation
Note that --variant=release is only available if you've set up signing as described above.
Verify whether you have followed the steps mentioned in the documentation properly.
For your second issue, try this if you are using Windows:
cd android && gradlew assembleRelease
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With