-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] > For input string: "+", again #742
Comments
Hi @rtm for fix this problem go to In this directory find the file {APP}-build.gradle Open and comment the next line
Next, re run
|
Hello @rtm rtm, I have faced similar issue of this. To resolve this issue open that gradle and replace + to a specific version. Also, make same version of firebase in project.properties. |
Thank you very much @dualh |
closing as resolved |
Hello everyone (and especially @dualh and @vc-hitesh ) I first had the problem with input string
And then in the same file comment out this line: But.... I now get a lot of version mismatch errors: I can see that versions are still mismatched in
But my problem is: I don't know which versions to set all these to!
Would any of you be so kind and see if you can point me in the right direction? The latest android releases for firebase say This is from my package.json "plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-wkwebview-engine": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
},
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "com.googleusercontent.apps.1062218916578-",
"WEB_APPLICATION_CLIENT_ID": "1062218916578-",
"PLAY_SERVICES_VERSION": "16.0.6"
},
"cordova-android-firebase-gradle-release": {
"FIREBASE_VERSION": "16.0.6"
},
"cordova-plugin-firebase": {},
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "16.0.6"
}
}, and from my config.xml <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
<plugin name="cordova-plugin-wkwebview-engine" spec="^1.1.4" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<plugin name="cordova-plugin-x-socialsharing" spec="^5.4.4">
<variable name="ANDROID_SUPPORT_V4_VERSION" value="24.1.1+" />
</plugin>
<plugin name="cordova-plugin-googleplus" spec="7.0.0">
<variable name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps." />
<variable name="WEB_APPLICATION_CLIENT_ID" value="1062218916578-" />
<variable name="PLAY_SERVICES_VERSION" value="16.0.6" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="16.0.6" />
</plugin>
<plugin name="cordova-plugin-firebase" spec="^2.0.5" />
<plugin name="cordova-android-play-services-gradle-release" spec="^2.0.0">
<variable name="PLAY_SERVICES_VERSION" value="16.0.6" />
</plugin>
<engine name="ios" spec="^4.5.5" />
<engine name="android" spec="^7.1.4" /> Thank you very much for your help. PS, lastly, I also wanted to ask, is it really required to make manual changes inside any files of |
I've pulled the plug on Cordova and its hot mess of version conflicts between Android, Cordova, Cordova platforms, and Cordova plugins. I wasted far too many hours and days of my life trying to get things to work. I delayed new features because I knew the pain that would be involved. I'm writing PWAs now, and life is sweet. Just say no. |
@rtm well, cordova works beautifully for all plugins for iOS for me. It's just all these android specific gradle versions I think. Firebase android core is on PS, I can't say no to android app for my client. But don't want to start learning JAVA just to write android apps lol...... I'm a JavaScript dev so....... PS2: i have updated my post above. I think it’s the versions in |
if I try to put all versions of firebase and google play to 16.0.6 I get warning like this:
And many more, and for each those lines a bunch of files it "searched" through. Does anyone know what is the correct firebase & google play version to make this plugin work on Android? |
If I try to put everything on
I'm not sure what is trying to access I guess I'll open a new thread for my problem. |
fixed it! @rtm don't give up on cordova! you can do it! |
Thank you so much @dualh |
Thanks @dualh for the solution ! |
Thanks, this works for me! |
@dualh solution is no good. I implemented it a few weeks ago, thought I was good to go... I just went through many hours of debug not knowing why Google Login wasn't working anymore. Then I remembered about this. Removed the plugin that was giving errors, removed my fix, rebuilt everything... It works again. Be very careful when implementing this solution. |
Hello, why this is close? What is the fix? `
My `
global packages:
local packages:
System:
Environment Variables:
Misc:
` We have to integrate with Jenkins for CI. And as for other the fix from @dualh is resolving the build, but then the plugin won't works. What is the resolution for this closed issue please? |
Hi @dualh I have followed your solution. that's ok. but I have got these error continuously.
Do you have any solution please?
This is my environment. Thank you in advance. |
Hello @zhiyilee, I migrated to FirebaseX caused the cordova-plugin-firebase is unmaintained currently Best regards 👋 |
Thank you @dualh for your kindly reply. FirebaseX will help me. 😘😘😘 |
I am using capacitor for the build, where would I change that? Thanks! |
Even after installing
cordova-android-{firebase,support,play-services}-gradle-release
, I still getI notice the following two lines referring to different versions of
com.google.gms:google-servcies
:Could this 3.1.0 vs. 3.2.0 be the problem, and if so how would one deal with that?
I am also using
cordova-plugin-firebase-dynamiclinks
, if that is relevant.I notice that there is a version 1.2 of the google services plugin, which references v4.0 of
com.google.gms:google-services
; is there any point in trying that?The text was updated successfully, but these errors were encountered: