-
-
Notifications
You must be signed in to change notification settings - Fork 45
Failed to apply plugin [id 'com.google.gms.google-services'] #97
Comments
I suppose you are using one of the latest versions of the plugin - 0.1.0 or higher. Please note there is a difference between both - 0.1.1 automatically adds to your build gradle the What you can try on your side is:
Build again. Alternatively, edit the I suspect that somewhere updating the project failed. Please try the above on your side and let me know how it goes. |
I had the same problem on 0.1.1
resolve the issue |
mmm, add/remove the platform did not work for me. I tried even add/remove the plugin:
|
Alternatively, edit the build.gradle and add to the class path where the google-services plugin is added 3.0.0 instead of +. Try building again. did you do that? |
Yep, and it did not work either, but I think something else might be wrong, because despite I changed the version it keeps saying the same, might it be a hook or another plugin interfering ?:
|
Got it!, I think the problem were the hooks not actually the platform. |
@ignaciolarranaga I just reproduced the problem. However, for me the problem was solved with the suggestion for adding/removing platforms. I had the new plugin added after the android platform was initialized. Then the build failed with the same exception. I am using {N} 2.5. The issue you described, however, really sounds like some cache/hooks problem (given the plugin now uses a hook). Let me know if there is a new information on the case. Closing the issue for now. |
@AntonDobrev just to comment I had to delete the node_modules and once rebuild it, the hook started executing again together with the problem, so I guess the hook is doing something wrong.
I deleted the hook reference from /hooks and the compilation backs to the normal. |
Actually just realized that the compilation pass but the application failed at runtime:
|
I got the reproduction from scratch, the problem arise when used together with nativescript-google-analytics (I guess because both use firebase), checkout out here: #101 |
Remove "Google Analytics" plugin.. |
The build for Android start failing with this exception:
The text was updated successfully, but these errors were encountered: