Code Monkey home page Code Monkey logo

amplifyandroidpush's People

Contributors

dantasfiles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kpandya-fintech

amplifyandroidpush's Issues

Issue with build.

Hello,

Thanks for your guide! I've been using amplify in my app for a while now, but since upgrading to RN 60+ it has been the main point of failure for builds of my app, specifically on the android side.

I've followed the steps in your guide regarding the changes to MY build.gradle files and it doesn't seem to be working.. I get the following error on build of my app.

> Task :app:checkReleaseDuplicateClasses FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.google.android.gms.gcm.PendingCallback found in modules jetified-firebase-jobdispatcher-0.6.0-runtime.jar (com.firebase:firebase-jobdispatcher:0.6.0) and jetified-play-services-gcm-16.1.0-runtime.jar (com.google.android.gms:play-services-gcm:16.1.0)

Due to the changes with the 2.x.x version of @aws-amplify/pushnotification, as you pointed out, our build.gradle files no longer accept:

implementation (project(':@aws-amplify_pushnotification'))

which is a bummer because in the past I needed to have:

implementation (project(':@aws-amplify_pushnotification')){
    exclude group: 'com.firebase'
    exclude group: 'com.google.android.gms', module: 'play-services-gcm'
}

in order to have the duplicate symbols issue not complain. I've checked that the build.gradle file of the previous (1.1.4) version and the most recent (2.1.5) use the same deps.

Since you're good enough and android builds to write a blog post about it - do you think you could help me figure out what someone who has class collisions would need to do?

Thanks!

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.