Closed onchainguy-btc closed 8 years ago
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.
I had this issue too. @oney is right, check you MainActivity.java file and you probably had added AsyncStorageModule more than once.
OMG I'm sorry @paulbao you are right, that was exactly the issue. Thank you.
@oney I had this issue too, but I haven't solve.
for React native 0.24
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.
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.
Okay after I found out that #34 was my fault and related to another library I got that problem fixed. Now I really have a problem with this library together with react native 0.18.0
These are my gradle dependencies:
Build the application works but as soon as I run the application I get the typical react native red screen showing the following error message:
When I remove this library as a dependency everything works fine.