tranleduy2000 / pascalnide

Pascal Compiler for Android
92 stars 25 forks source link

Error on building the project: `google-services.json` not found #18

Closed noncom closed 7 years ago

noncom commented 7 years ago

I have downloaded the repo and am getting the following error on building the project:

Error:Execution failed for task ':app:processDevDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it. 
   Searched Location: 
  /home/noncom/work/src/pascalnide/app/src/dev/debug/google-services.json
  /home/noncom/work/src/pascalnide/app/src/debug/dev/google-services.json
  /home/noncom/work/src/pascalnide/app/src/dev/google-services.json
  /home/noncom/work/src/pascalnide/app/src/debug/google-services.json
  /home/noncom/work/src/pascalnide/app/google-services.json

What is the recommended way to fix it?

tranleduy2000 commented 7 years ago

You can create firebase project and download config file. https://support.google.com/firebase/answer/7015592?hl=en

noncom commented 7 years ago

Eh, I did not yet use Firebase, so I don't have any experience with it. Okay, I have created a Firebase project, but there is no "gear" icon in it, that is mentioned in point 2 in the guide that you have referenced. There is, however "Project Settings" if I click the three vertical dots icon on the top right, but there's no "Your apps" card or any other card. Either I am missing something or that's Google changing their UIs too fast again.

In some other place, googling for info on google-services.json, I have found a link to this page: https://developers.google.com/mobile/add?platform=android&cntapi=analytics and I can specify my project there, but it also requires a package name. Do I have to specify any particular package name?

tranleduy2000 commented 7 years ago

I added this file in lasted commit 48d9efc4a300a31e6d05705037595aa025634358

noncom commented 7 years ago

Ok, yes, I am able to compile the project after that! Thank you!