Code Monkey home page Code Monkey logo

Comments (22)

stoconnor avatar stoconnor commented on August 29, 2024 3

Edit your project.properties file and explicitly add the version.

From:
cordova.system.library.7=com.google.firebase:firebase-dynamic-links:$FIREBASE_VERSION
To:
cordova.system.library.7=com.google.firebase:firebase-dynamic-links:11.0.+

Also best to ensure that you update your firebase core/messaging and play-services to the same version:

cordova.system.library.3=com.google.firebase:firebase-core:11.0.+
cordova.system.library.4=com.google.firebase:firebase-messaging:11.0.+
cordova.system.library.5=com.google.android.gms:play-services-auth:11.0.+
cordova.system.library.6=com.google.android.gms:play-services-identity:11.0.+

After making these changes I ran into another error:
Cannot add task ':processArmv7DebugGoogleServices' as a task with that name already exists.

This means there is a duplicate task to do the same thing... To fix this, simply comment out the task in the plugin file of /platforms/android/cordova-support-google-services/APPNAME-build.gradle

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

from cordova-plugin-firebase-analytics.

lukasstaecker avatar lukasstaecker commented on August 29, 2024 1

I'm also still facing this error. Removing and adding the firebase plugins or android platform didn't work. Neither did adding "classpath 'com.google.gms:google-services:3.0.0'" to the top level build.gradle dependencies. Any other suggestions?

from cordova-plugin-firebase-analytics.

royken avatar royken commented on August 29, 2024 1

As @Darkarmour said, I downgraded to version 0.12.0

cordova plugin rm cordova-plugin-firebase-analytics --save
cordova plugin add [email protected] --save

from cordova-plugin-firebase-analytics.

mancku avatar mancku commented on August 29, 2024

I'm having the same problem
ionic: 3.18.0

global packages:
Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts               : 3.0.0  
Cordova Platforms                : android 6.3.0 ios 4.5.3  
Ionic Framework                  : ionic-angular 3.7.0  

from cordova-plugin-firebase-analytics.

okonon avatar okonon commented on August 29, 2024

@michaeljcoyne any luck resolving this issue?

from cordova-plugin-firebase-analytics.

okonon avatar okonon commented on August 29, 2024

I am having same issue here and any help will be appreciated.

from cordova-plugin-firebase-analytics.

rafraph avatar rafraph commented on August 29, 2024

I have the same problem. Anyone found a solution please?

from cordova-plugin-firebase-analytics.

Vivien- avatar Vivien- commented on August 29, 2024

Same issue here as well

from cordova-plugin-firebase-analytics.

kevincherryholme avatar kevincherryholme commented on August 29, 2024

Same issue here. Do we know if this will be resolved?

from cordova-plugin-firebase-analytics.

prantikv avatar prantikv commented on August 29, 2024

How does one specify the FIREBASE_VERSION variable?

from cordova-plugin-firebase-analytics.

rafraph avatar rafraph commented on August 29, 2024

After lot of time I fixed it. The solution was by remove and reinstall the plugins or even all the packages. In addition I updated some versions.
It is hard to say what exactly solve the problem

from cordova-plugin-firebase-analytics.

pwespi avatar pwespi commented on August 29, 2024

I have added the plugin to my ionic project with ionic cordova plugin add cordova-plugin-firebase-analytics and it works. In config.xml I have:

<plugin name="cordova-plugin-firebase-analytics" spec="^0.12.1">
    <variable name="FIREBASE_VERSION" value="11.0.+" />
</plugin>

Maybe this helps...

from cordova-plugin-firebase-analytics.

royken avatar royken commented on August 29, 2024

Same error here. @pwespi I have done exactly the same and I have that in my config.xml file.
Any solution ?

from cordova-plugin-firebase-analytics.

Darkarmour avatar Darkarmour commented on August 29, 2024

Hey Everyone! Previous version of the plugin (0.12.0) solves the issue. Requires the google-services.json file to be placed inside the platforms->android of your project. Do check it

from cordova-plugin-firebase-analytics.

Darkarmour avatar Darkarmour commented on August 29, 2024

It solved the above issue. But facing other issues because of the downgrade. How about for you? @royken

from cordova-plugin-firebase-analytics.

lukasstaecker avatar lukasstaecker commented on August 29, 2024

Okay, I can confirm that the error disappears for the analytics plugin when downgrading to 0.12.0. However, I kept receiving the same error because of firebase messaging, so I also had to downgrade firebase messaging to 0.11.0 (mind the 11!) to make the error disappear entirely. Still, I keep running into new errors ever since and didn't manage to build the project yet - so I'm not sure if this is actually the best way.

from cordova-plugin-firebase-analytics.

royken avatar royken commented on August 29, 2024

@Darkarmour no more issues. Note, I don't use FCM but onesignal.
@Lukizzle you must ensure yoursel that you use excatly the same version of goole-servive, since it depends on each plugin. Firebase analytics has its own and FCM has its own.

from cordova-plugin-firebase-analytics.

lukasstaecker avatar lukasstaecker commented on August 29, 2024

Do you mean cordova-support-google-services? How do I make sure they all use the same version?

from cordova-plugin-firebase-analytics.

mikamboo avatar mikamboo commented on August 29, 2024

Hi @pwespi !

Wich version of fcm pluging did you add into your config.xml ?

from cordova-plugin-firebase-analytics.

mikamboo avatar mikamboo commented on August 29, 2024

Working for me

<plugin name="cordova-plugin-fcm" spec="2.1.2" />
<plugin name="cordova-plugin-firebase-analytics" spec="~0.12.1">
     <variable name="FIREBASE_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-plugin-firebase-dynamiclinks" spec="~0.10.1">
     <variable name="APP_DOMAIN" value="africa-up.io" />
     <variable name="APP_PATH" value="/" />
 </plugin>

from cordova-plugin-firebase-analytics.

sahyun1 avatar sahyun1 commented on August 29, 2024

I had same issue with 0.13.0
Followed @stoconnor solution and it builds fine now :-)

from cordova-plugin-firebase-analytics.

chemerisuk avatar chemerisuk commented on August 29, 2024

I believe the issue was because some people used old versions of cordova-cli. Version 1 includes updated section that forces to use a valid version.

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.