package com.geektime.reactnativeonesignal does not exist
import com.geektime.reactnativeonesignal.ReactNativeOneSignalPackage;
I'm on Android with react native 0.42,
I followed the instructions here
https://github.com/geektimecoil/react-native-onesignal#android-installation
Any ideas? @avishayil
I'm having the same issue currently with RN 0.42
@jakeatwork the correct import is import com.geektime.rnonesignalandroid.ReactNativeOneSignalPackage;
I managed to solve the issue, there was a conflict with the maps library
@ricsirigu worked for me! thanks.
I'm getting an error stating "Native module RNonesignal tried to override RNonesignal for module name OneSignal. if this was your intention, set can overrideexistingmodule=true
I just add this line (app/build.grade)
compile project(':react-native-onesignal')
And it work...
Having the same issue...
@lenichols Have you tried this solution? Apparently after typing react-native link react-native-onesignal
into the console, it doesn't add that missing line into gradle build file.
I'm currently using RN 0.45.1
I had this issue and the problem was caused by running react-native link react-native-onesignal
more than once, which resulted in duplicated imports of onesignal in MainApplication.java
and also in the settings.gradle
file. Might be worth checking for this.
I had the same exact issue until I realized I had added new ReactNativeOneSignalPackage()
manually even after react-native link
had done it for me. So check your _MainApplication.java_ and make sure you only have one entry.
After that, run react-native run-android
to re-compile
Most helpful comment
I just add this line (app/build.grade)
compile project(':react-native-onesignal')
And it work...