Code Monkey home page Code Monkey logo

Comments (8)

NBAMj avatar NBAMj commented on August 29, 2024 2

I was having the same issue.
What I did is I changed a line in project.properties that corresponds to play-services-ads sdk version to use 11.0.+ explicitly
cordova.system.library.1=com.google.android.gms:play-services-ads:11.0.+

Hope it helps.

from cordova-plugin-firebase-analytics.

PratikPagada avatar PratikPagada commented on August 29, 2024 1

open plugins directory -> build.gradle

Comment out these lines in the cordova-support-google-services directory build.gradle file.

dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
// classpath 'com.google.gms:google-services:3.1.0'
}

// ext.postBuildExtras = {
// apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
// }

then Remove and re-add plattform.

then
(build.gradle file of the android platform folder)
Add this line to the classpath section

classpath 'com.google.gms:google-services:3.1.0'
And add this line below the dependencies, nearly at the bottom of the file
apply plugin: 'com.google.gms.google-services'

from cordova-plugin-firebase-analytics.

FdezRomero avatar FdezRomero commented on August 29, 2024

Your problem may be caused by other plugin dependencies in your app. With the PR you are proposing (#34) you might fix your individual problem but cause a new one to other people.

I had a similar problem in #32 and after removing and re-adding the Android platform it's now working. I would check that first.

from cordova-plugin-firebase-analytics.

chemerisuk avatar chemerisuk commented on August 29, 2024

I feel like you have a conflict with some other plugin. 3.1.0 is the latest version of com.google.gms:google-services so I'm not sure it's right idea to downgrade it.

from cordova-plugin-firebase-analytics.

donuzium avatar donuzium commented on August 29, 2024

@FdezRomero @chemerisuk
Thanks for your fast reply.

Your problem may be caused by other plugin dependencies in your app.

I feel like you have a conflict with some other plugin

yes that's true. I installed just 2 plugins in new empty app.
cordova-plugin-fcm ('com.google.gms:google-services:3.0.0')
cordova-plugin-firebase-analytics ('com.google.gms:google-services:3.1.0')

you might fix your individual problem but cause a new one to other people.

I'm not sure it's right idea to downgrade it.

I think so too. I just want to tell my case because I thought there are not few users that use both firebase-related plugins.
Sorry, PR was exaggerated.

from cordova-plugin-firebase-analytics.

donuzium avatar donuzium commented on August 29, 2024

I had a similar problem in #32 and after removing and re-adding the Android platform it's now working. I would check that first.

I did remove and re-adding. But it doesn't work because of the conflict these versions.

from cordova-plugin-firebase-analytics.

jonathan-chin avatar jonathan-chin commented on August 29, 2024

I have the same issue as @donuzium

I'm also using both this plugin and cordova-plugin-fcm

removing and adding the android platform again did not fix it for me. making the downgrade as @donuzium suggested did work.

what are some options?

from cordova-plugin-firebase-analytics.

anuj-njoshi avatar anuj-njoshi commented on August 29, 2024

i also did removing installing android platform not work

from cordova-plugin-firebase-analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.