我正在尝试使用 Android Studio 和 Google Calendar API 开发我自己的应用。
Google 页面是这样说的:
In your working directory, run the following commands:
$ gradle init --type basic $ mkdir -p src/main/java src/main/resources
当我尝试将它放入命令行时,它返回:
'$' is not recognized as an internal or external command, operable program or batch file.
我是不是放错地方了?
我什至没有意识到他们假设人们正在使用 Linux。我有一台 Windows 机器。我已经尝试了所有的建议,但到目前为止没有任何进展,所以我不确定从这里去哪里。
最佳答案
完全没有问题! $ 表示需要在终端(在本例中为 Bash 终端)中运行以下命令。所以试着在你的机器上打开一个并进入项目。然后运行:
gradle init --type basic && mkdir -p src/main/java src/main/resources
编辑:将其更改为使用 &&
运算符
关于java - $ 不被识别为内部或外部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31360033/