question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NS7.0: Plugin with id 'com.google.gms.google-services' not found.

See original GitHub issue

Hello,

We were using this plugin with NativeScript 6.15. After ugrading to NativeScript 7.0 the firebase plugin is providing the following error:

Script './omitted/node_modules/@nativescript/firebase/platforms/android/include.gradle' line: 96
A problem occurred evaluating script.
Plugin with id 'com.google.gms.google-services' not found.

As suggested in all of the previous issues with this same error I have run the setup again, (cd node_modules/@nativescript/firebase && npm run setup), generating all of the required hooks anew. I have attempted to reinstall all node_modules.

➜ tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.0.3 version and is up to date.
✔ Component @nativescript/core has 7.0.0 version and is up to date.
✔ Component @nativescript/ios has 7.0.0 version and is up to date.
✔ Component @nativescript/android has 7.0.0 version and is up to date.
"dependencies": {
  "@nativescript/firebase": "rc", // 11.0.0-rc.5
}

Any ideas what may be wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
sosclercommented, Sep 13, 2020

I was able to solve this issue by adding classpath "com.google.gms:google-services:4.3.0" to platforms/android/build.gradle in the dependencies block. However, this has to be done every time the platforms folder is added…

The problem is that by deleting the platforms files, you also delete information that was automatically added when you installed the firebase plugin.

Another way to solve this is to re-install the firebase plugin tns plugin remove nativescript-plugin-firebase then tns plugin add nativescript-plugin-firebase. By doing so, you leave to the cli the task to add the missing dependencies in the file platforms/android/build.gradle.

1reaction
hruegercommented, Sep 5, 2020

I was able to solve this issue by adding classpath "com.google.gms:google-services:4.3.0" to platforms/android/build.gradle in the dependencies block. However, this has to be done every time the platforms folder is added…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin with id 'com.google.gms.google-services' not found
Had the same problem. Fixed by adding the dependency classpath 'com.google.gms:google-services:3.0.0'. to the root build.gradle .
Read more >
nativescript-plugin-firebase - Bountysource
Facebook and Google login not working only on iOS $ 0 ... Created 5 years ago in EddyVerbruggen/nativescript-plugin-firebase with 41 comments. Hey,. I'm...
Read more >
Plugin with id 'com.google.gms.google-services' not found ...
Plugin with id 'com.google.gms.google-services' not found. I have been able to build before just fine. The cordova-plugin-firebase plugin ...
Read more >
The Google Services Gradle Plugin
json file is generally placed in the app/ directory (at the root of the Android Studio app module). As of version 2.2.0 the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found