Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is "~/.gradle" folder in Windows?

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.

like image 471
ryan Avatar asked Apr 02 '17 00:04

ryan


1 Answers

~ 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.

like image 87
Stephen Avatar answered Nov 15 '22 17:11

Stephen