Leena Erhayel
Leena Erhayel

Reputation: 15

google plugin services gives me an error

In gradle, at the end, I'm trying to insert this line apply plugin: 'com.google.gms.google-services' but whenever I sync the file I get this error:

Error:FAILURE: Build failed with an exception.

BUILD FAILED in 1s

Can anyone help?

Upvotes: 1

Views: 2673

Answers (1)

Khemraj Sharma
Khemraj Sharma

Reputation: 58934

As error says File google-services.json is missing, you have not included google-service json file in your project. Which is configuration file needed if you use any google api.

To include google-service.json in your project

Please go to this URL :

https://developers.google.com/mobile/add

Choose your Options and finally you will be able to download

google-service.json file

copy that file and paste it Into

YourProjectName/app Directory and build project.

Upvotes: 1

Related Questions