-
Notifications
You must be signed in to change notification settings - Fork 441
Build failed - Plugin with id 'com.google.gms.google-services' not found. #278
Comments
Same issue here. |
I am interested to know whether that worked and how did you do that? |
Try removing the node_modules folder as well. |
Still not building, even with the node_module on 3.9.0 version |
Confirmed, 3.9.0 works fine, ^3.9.0 does not |
This however is not a permanent solution. |
Once. I. Find. Time. |
Hey @EddyVerbruggen, This also hit the https://github.com/NativeScript/nativescript-marketplace-demo app. |
I would like to ask how does 3.9.0 work for you. I tried cutting this plugin entirely from app and it built and everything worked. Am I doing something wrong? |
I tried to build a fresh new app with 2.5.0 Nativescript and "nativescript-plugin-firebase": "3.9.0", and it will not build. I tried 2.4.0 nativescript, still no luck. 2.4.0 with "nativescript-plugin-firebase": "3.8.5", still the same result. How is it possible that 3.9.0 works for you? Is there something else I'm missing? |
Do a npm cache clean and try. |
So I tns created an omg application, package.json is as follows:
deleted node_modules and platforms; npm cache clean; tns build android (first one hangs); tns build android into
Tried with tns 2.4.0 as well. |
@sagesan can you share your entire project with me? |
That above is freshly created app using 'tns create'. Nothing was changed, I just added this plugin by 'tns plugin add nativescript-plugin-firebase'. I could try to reinstall the entire tns on my PC, or just the Android SDKs, perhaps that could help. |
.. and you didn't even add the |
In version 3.8.5 it works perfectly |
Let me try and reproduce this today. Hope to be able to, and find a solution. |
@EliuFlorez I just reproduced the error you had by starting a new app, copying a Then created a new project with the correct package_name and the build was OK. Are you sure your |
UPDATE: I thought it was a lack of running With {N} 2.5.0 the postinstall script that was automatically started after installing the plugin was broken; it prompts the user for input ('do you use firebase messaging? (y/n)'), bot the 2.5.0 swallows the prompts making the installer just hang. So in plugin version 3.9.3 I removed the postinstall script and added instructions how to run it yourself. @sagesan is that the step you're missing? So the entire install that works for me is:
@vchimev can you also confirm this is the problem with the app you linked to? And do you have any idea why the prompts are swallowed by the CLI? {N} 2.4.0 worked fine, you can try this plugin's 3.9.2 version with {N} 2.4.0 to see what I mean. I'll open an issue in the nativescript-cli repo as well. |
@EddyVerbruggen You are correct, I forgot to add google-services.json in that fresh app. Now the part where I messed up again: I created a copy of the project where I tried the downgrades of this plugin. However I only copied the app directory, but not the hooks. And it seems that was the cause of not being able to build the project successfully. After copying the hooks, everything builds with 3.9.0 as suggested above. Thank you all for help! |
Also, did anything happen to the 3.9.3 version? Because it seems to build without any issues on the original project now. |
Nope, 3.9.3 didn't change as npm doesn't allow updates to package versions (luckily). |
Ok, so it would seem that the change to tns run actually caused not actually updating plugins and it failed to built from that? So that you have to do tns build when doing update? Or what could have caused the issue? |
@sagesan before {N} 2.5.0 livesync was not enabled when doing a |
tip: I often use |
Thanks for the clarifications, @EddyVerbruggen! I confirm this is the problem with the app I linked to. The prompt swallowing by the CLI 2.5.0 looks like a bug to me, thank you for logging it. I'm sure the CLI guys will reveal the cause for this behavior. |
Not working for me. I tried all the things like removing the platform, adding the npm packages but still, i am getting the same error. |
@mayureshjadhav - did you path to the |
I have updated my normally working project today to 2.5 nativescript version, but I can no longer get it to build.
Script 'C:\Users\Sage\work\test\FCM\platforms\android\configurations\nativescript-plugin-firebase\include.gradle' line: 45
A problem occurred evaluating script.
My plugins:
I had issues with camera plugin, and they suggested an update, and now I can't even build the app.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: