如何在 Windows 上向 Android Studio 添加配置文件? [英] How can I add a configuration file to Android Studio on Windows?

查看:57
本文介绍了如何在 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\"

这篇关于如何在 Windows 上向 Android Studio 添加配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆