admin管理员组

文章数量:1202336

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.

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.

Share Improve this question edited Dec 6, 2021 at 6:28 Sakhund 2621 gold badge7 silver badges32 bronze badges asked Apr 2, 2017 at 0:59 ryanryan 5433 gold badges8 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 21

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

本文标签: javascriptWhere is quotgradlequot folder in WindowsStack Overflow