如何在Windows中将配置文件添加到Android Studio? [英] How to add configuration file to android studio in windows?

查看:88
本文介绍了如何在Windows中将配置文件添加到Android Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google总体上已更改了用于生成注册ID和GCM的文档.与往常一样,文档是不完整的,并且包含不起作用的代码,其中之一是将配置文件添加到项目中.我被困在这一步.

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

$ move path-to-download/google-services.json app/ is invalid windows command. Can someone correct this syntax for me please?

推荐答案

好,我知道了.这是正确的答案.首先,请勿复制和粘贴行(听起来像是您初次阅读时的声音).然后,对于Windows,您不需要美元符号,而使用反斜杠而不是正斜杠.

Ok, I figured it out. Here is the correct answer. First don't copy and paste the line(sounds like that 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 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天全站免登陆