我正在按照 React Native 文档创建签名的 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=*****
本来我以为~/.gradle
是<project folder>/android/.gradle
.但是,它不是...在命令行中,我运行了 cd ~/.gradle/
命令,它说:
The system cannot find the path specified.
能否请您告诉我这个文件夹在哪里(在 Windows 中),以便我可以创建 gradle.properties?谢谢。
最佳答案
~
用于表示主目录(在基于 unix 的系统上)。在 Windows 上,等效项是 C:\Users\username\.gradle
目录。当然,用户名必须更改为您的用户名。这是它在我电脑上的位置。
关于javascript - Windows 中的 "~/.gradle"文件夹在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43163586/