Git Product home page Git Product logo

Comments (7)

paulbao avatar paulbao commented on July 19, 2024 106

I had this issue too. @oney is right, check you MainActivity.java file and you probably had added AsyncStorageModule more than once.

from react-native-gcm-android.

joshuapinter avatar joshuapinter commented on July 19, 2024 52

I had the same issue. In later versions of React Native (0.39 in my case) you'll want to look at the getPackages function in MainApplication.java instead of MainActivity.java.

Btw, this happened because react-native link isn't super clever and can sometimes re-add a package that is already included.

from react-native-gcm-android.

AugustoAleGonZhipCode avatar AugustoAleGonZhipCode commented on July 19, 2024 3

Hello @joshuapinter thanks for your answer. I solved that issue checking what you are saying. I have the same packages 4 times! ๐Ÿ˜† As you said it, react-native is not super clever.

from react-native-gcm-android.

oney avatar oney commented on July 19, 2024

I setup TestGcm project on this branch for React Native 0.18.0. It built and run fine.
Please show me android/app/src/main/java/com/yourapp/MainActivity.java of your project.

from react-native-gcm-android.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

OMG I'm sorry @paulbao you are right, that was exactly the issue. Thank you.

from react-native-gcm-android.

Poney1 avatar Poney1 commented on July 19, 2024

@oney I had this issue too, but I haven't solve.

from react-native-gcm-android.

Poney1 avatar Poney1 commented on July 19, 2024

for React native 0.24

from react-native-gcm-android.

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.