I was following the React Native document to create a signed APK. Source
Setting up Gradle variables
Place the my-release-key.keystore file under the android/app directory in your project folder.
Edit the file ~/.gradle/gradle.properties and add the following
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore MYAPP_RELEASE_KEY_ALIAS=my-key-alias MYAPP_RELEASE_STORE_PASSWORD=***** MYAPP_RELEASE_KEY_PASSWORD=*****
Originally, I thought ~/.gradle
is <project folder>/android/.gradle
. However, it is not... In the command line, I ran the cd ~/.gradle/
command and it says:
The system cannot find the path specified.
Would you please let me know where is this folder (in Windows), so I can create gradle.properties? Thank you.
~
is used to represent the home directory (on unix based systems). When on windows the equivalent would be C:\Users\username\.gradle
dir. Of course username would have to be changed for your username. This is where it is on my computer.
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