You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This plugin gives me problems building for android.
I have installed:
cordova-android-play-services-gradle-release
cordova-android-firebase-gradle-release
And have tried a couple of settings.
First of all, it won't build at all because of this error:
Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] > For input string: "+"
Which can be fixed by:
go to cordova/platforms/android/cordova-support-google-services/ and open the gradle file
to comment out the line: // apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
(This solution is from this thread)
Ok, so now it can build, but we have a lot of version errors.
Option 1
put all versions of the helper plugins on 16.0.6
Then we get errors like:
> Could not find com.google.firebase:firebase-auth:16.0.6.
> Could not find com.google.firebase:firebase-config:16.0.6.
> Could not find com.google.firebase:firebase-common:16.0.6.
> Could not find com.google.firebase:firebase-analytics-impl:16.0.6.
> Could not find com.google.android.gms:play-services-auth:16.0.6.
> Could not find com.google.android.gms:play-services-identity:16.0.6.
> Could not find com.google.android.gms:play-services-ads-identifier:16.0.6.
> Could not find com.google.firebase:firebase-measurement-connector-impl:16.0.6.
> Could not find com.google.android.gms:play-services-basement:16.0.6.
> Could not find com.google.android.gms:play-services-measurement-api:16.0.6.
> Could not find com.google.firebase:firebase-common:16.0.6.
And many more, and for each those lines a bunch of files it "searched" through.
Option 2
put all versions of the helper plugins on 16.+
Then we get errors like:
Failed to notify dependency resolution listener.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.0.5,16.0.5], [16.0.0,16.0.0]], but resolves to 16.0.5. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
> The library com.google.firebase:firebase-analytics is being requested by various other libraries at [[16.0.6,16.0.6], [16.0.1,16.0.1]], but resolves to 16.0.6. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
Does anyone know what the correct versions are I need to use for firebase and google play ?
Best regards!
The text was updated successfully, but these errors were encountered:
Describe the bug
This plugin gives me problems building for android.
I have installed:
And have tried a couple of settings.
First of all, it won't build at all because of this error:
Which can be fixed by:
cordova/platforms/android/cordova-support-google-services/
and open the gradle file// apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
(This solution is from this thread)
Ok, so now it can build, but we have a lot of version errors.
Option 1
put all versions of the helper plugins on
16.0.6
Then we get errors like:
And many more, and for each those lines a bunch of files it "searched" through.
Option 2
put all versions of the helper plugins on
16.+
Then we get errors like:
Does anyone know what the correct versions are I need to use for firebase and google play ?
Best regards!
The text was updated successfully, but these errors were encountered: