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?
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\"
Solution:
Go to the Terminal in Android Studio (menu View → Tool Windows → Terminal) and issue:
move "path-to-download\google-services.json" app\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With