Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Plugin with id 'com.google.gms.google-services' not found. #1882

Open
Whip opened this issue May 7, 2022 · 13 comments
Open

Plugin with id 'com.google.gms.google-services' not found. #1882

Whip opened this issue May 7, 2022 · 13 comments

Comments

@Whip
Copy link

Whip commented May 7, 2022

My issue is identical to #278 but that was 5 years ago so maybe its different. I did try the things mentioned in that thread but no dice. Here's my case.

I have an app that was last updated last year. I decided to do an yearly maintenance update. I updated Android SDK, XCode, NS CLI, NS Core, theme and plugins. Then ran

ns build android

and got this error

Script '/Users/Whip/Documents/ProjectName/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.

Command ./gradlew failed with exit code 1

Here are my dependencies

"dependencies": {
    "@nativescript-community/ui-collectionview": "^4.0.49",
    "@nativescript-community/ui-material-cardview": "^7.0.5",
    "@nativescript-community/ui-material-textfield": "^7.0.5",
    "@nativescript-community/ui-material-textview": "^7.0.5",
    "@nativescript/core": "^8.2.3",
    "@nativescript/firebase": "^11.1.3",
    "@nativescript/theme": "^3.0.2",
    "@nstudio/nativescript-checkbox": "^2.0.5",
    "@nstudio/nativescript-loading-indicator": "^4.1.2",
    "@triniwiz/nativescript-image-cache-it": "^7.0.14",
    "@triniwiz/nativescript-image-zoom": "^4.1.1",
    "@triniwiz/nativescript-toasty": "^4.1.3",
    "@triniwiz/nativescript-youtubeplayer": "^4.1.4",
    "nativescript-exit": "1.0.1",
    "nativescript-gif": "^5.0.0",
    "nativescript-material-icons": "^1.0.3",
    "nativescript-permissions": "^1.3.12",
    "nativescript-phone": "^3.0.3",
    "nativescript-ui-autocomplete": "^8.0.1",
    "nativescript-ui-sidedrawer": "^10.0.2"
  },
  "devDependencies": {
    "@nativescript/android": "~8.2.2",
    "@nativescript/ios": "~8.2.3",
    "@nativescript/webpack": "^5.0.5-rc.0"
  }

Can you help me with this?

@weareframework
Copy link

Same issue here

@jeanpaulattard
Copy link

I had that very same issue. I ended up downgrading to @nativescript/core to version 8.2.0 to continue working. Not sure what the problem with this version is

@Whip
Copy link
Author

Whip commented May 11, 2022

You think the problem is with core and not this plugin?

@jeanpaulattard
Copy link

I'm not sure to be quite honest. Didn't give it much investigation after finding the fix for it.

@Whip
Copy link
Author

Whip commented May 13, 2022

Its sad to see this plugin is not being maintained right now. There are over 500 open issues and last update was almost 2 years ago. @EddyVerbruggen can you confirm if you're still working on this?

@mika-ella
Copy link

hey @Whip are you able to find solution for this? I am also facing this issue earlier this May.

@Whip
Copy link
Author

Whip commented May 16, 2022

No. I believe the plugin needs to be updated. @EddyVerbruggen could tell. I hope he hasn't abandoned the project.

@gyansoft786
Copy link

Same issue here. After upgrading to {N} 8.2.2. It was working file with NS 8.0. Looks like this plugin no longer maintained. @EddyVerbruggen would you please confirm if this plugin is no longer in development.

@gyansoft786
Copy link

looks like things has been changed. We are using outdated plugin.
Have a look at this https://github.com/NativeScript/firebase
It works for me fine.

@jwrascoe
Copy link

jwrascoe commented Jun 24, 2022

the correct {NS} way to fix this is by adding a buildscript.gradle file to your App_Resources/Android directory
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.12'
}

@machadoastur
Copy link

jwrascoe
Could you tell me where to put that file? I can't find that code to include firebase in an Android Studio Firebase project

@jwrascoe
Copy link

jwrascoe commented Mar 2, 2023

@machadoastur It goes in your App_Resources/Android directory where your Angular code is, not in the platform generated code... the NS builder looks at that file and then creates the correct files in the platform area

@machadoastur
Copy link

machadoastur commented Mar 3, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants