NS7.0: Plugin with id 'com.google.gms.google-services' not found.
See original GitHub issueHello,
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:
- Created 3 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
thentns plugin add nativescript-plugin-firebase
. By doing so, you leave to the cli the task to add the missing dependencies in the fileplatforms/android/build.gradle
.I was able to solve this issue by adding
classpath "com.google.gms:google-services:4.3.0"
toplatforms/android/build.gradle
in thedependencies
block. However, this has to be done every time theplatforms
folder is added…