Giter Site home page Giter Site logo

Build Error After Installing Plugin (D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub) about cordova-plugin-fcm-with-dependecy-updated HOT 5 CLOSED

andrehtissot avatar andrehtissot commented on June 12, 2024
Build Error After Installing Plugin (D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub)

from cordova-plugin-fcm-with-dependecy-updated.

Comments (5)

rajesh1158 avatar rajesh1158 commented on June 12, 2024 2

I got the same issue. I fixed it by installing androidx and androidx-adapter using below:

cordova plugin add cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter

And, then, I edited my gradle.properties and added the 2 lines below:

android.useAndroidX=true
android.enableJetifier=true

After that, I recompiled my project and it worked.

from cordova-plugin-fcm-with-dependecy-updated.

samit-s3752136 avatar samit-s3752136 commented on June 12, 2024

I realised the package.json doesn't have the plugins androidx and androidx-adapter but I still get the same issue when installed

from cordova-plugin-fcm-with-dependecy-updated.

samit-s3752136 avatar samit-s3752136 commented on June 12, 2024

I realised the package.json doesn't have the plugins androidx and androidx-adapter but I still get the same issue when installed

@rajesh1158 As mentioned in my 2nd comment, I did install both plugins and that's when I faced the issue where my googleplus plugin just stopped working.

Fortunately, I was able to solve my issue by removing the androidx and androidx-adapter plugin, then changing the 2 lines in android/app/build.gradle:

implementation "com.google.android.gms:play-services-auth:11.8.0"
implementation "com.google.android.gms:play-services-identity:11.8.0"

to this

implementation "com.google.android.gms:play-services-auth:+"
implementation "com.google.android.gms:play-services-identity:+"

After that I had no issues and all plugins were functional. However, I don't feel like this is the best way to get it to work. I will give you're method a try but would prefer to find a solution that doesn't require changing the build files

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

For now it's a good solution.
The issue here is that cordova-plugin-googleplus and cordova-plugin-fcm-with-dependecy-updated make use of native dependencies that, if in wildly different in version, cannot work well together.

What you could try is to, instead of changing the file, install cordova-plugin-googleplus with the configuration set, like:

cordova plugin add cordova-plugin-googleplus --variable PLAY_SERVICES_VERSION="+"

This would not only set the plugin config as you manually configured yourself, as it'd set in package.json, for reference.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Closed issue due to inactivity.

from cordova-plugin-fcm-with-dependecy-updated.

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.