如何在 Windows 上向 Android Studio 添加配置文件?

问题描述:

Google 已更改生成注册 ID 和 GCM 的一般文档.与往常一样,文档不完整并且包含非功能性代码,其中之一是 添加配置文件到项目.我卡在这一步:

Google has changed the documentation for generating registration ID and GCM in general. As always, the documentation is incomplete and include non-functional code, one of which is adding a configuration file to the project. I am stuck at this step:

move path-to-download/google-services.json app/

因为它是无效的 Windows 命令.什么是正确的语法?

As it is an invalid Windows command. What is the correct syntax for this?

首先,不要复制和粘贴该行(这听起来像是您第一次阅读它时).然后对于 Windows,您不需要美元符号并使用反斜杠,而不是正斜杠.

First, don't copy and paste the line (it sounds like that the first time you read it). Then for Windows you don't need the dollar sign and use backslashes, not forward slashes.

不要忘记将路径名写在引号中.否则它会给出命令的语法不正确".例外.

Do not forget to write the path name in quotes. Else it will give "The syntax of the command is incorrect." exception.

 move "C:\yourdownload folder here\google-services.json" "app\"