Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a configuration file to Android Studio on Windows?

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/

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

like image 581
The_Martian Avatar asked Jul 08 '15 23:07

The_Martian


2 Answers

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\"
like image 138
The_Martian Avatar answered Oct 10 '22 02:10

The_Martian


Solution:

Go to the Terminal in Android Studio (menu ViewTool WindowsTerminal) and issue:

move "path-to-download\google-services.json" app\
like image 26
Vithun Iroid Avatar answered Oct 10 '22 04:10

Vithun Iroid