> Could not find method apply() for arguments [com.google.gms.google-services] on project ':app' of type org.gradle.api.Project

Viewed 49

this was the errorThis is the code Build file 'C:\Users\ANAM\AndroidStudioProjects\employeedetails\android\app\build.gradle' line: 25

I tried upgrading the gradle plugin, also tried deleting the gradle folder. But the error is in line:25 in app level build.gradle file.

'com.google.gms.google-services'

according to error, showing there. Hoping for early reply as possible

1 Answers

The problem is that you wrote

apply 'com.google.gms.google-services'

instead of

apply plugin: 'com.google.gms.google-services'
Related