-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: RNFirebaseMessaging is not abstract and does not override #381
Comments
@Salakar how is this erroring? The abstract method has been there for over a year on RN! |
Is this my question? I don't know. |
Nope was asking Salakar! @GH974 On your terminal, could you run Cheers |
Oh sorry... react-native-cli: 2.0.1 |
@GH974 Ta, could you navigate to /node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java In there, could you check the |
Hi @GH974 Your projects RN version is out-dated, so here's why & how to fix: Your RN versions ActivityEventListener is looking for the method: This was then changed in 0.33 to the current implementation of I think that your gradle is not correctly looking at Make sure your
|
I have new error |
@GH974 from above screenshot: |
Yes I added this. thanks its works |
Thanks a lot @Ehesp !! It worked like a charm! |
Issue
:react-native-firebase:compileReleaseJavaWithJavac
/Users/gh.mbp974/Documents/DEV_SITE/quizzApp/appv2/quizz/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:34: error: RNFirebaseMessaging is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener
public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements LifecycleEventListener, ActivityEventListener {
^
1 error
Incremental compilation of 2 classes completed in 0.402 secs.
:react-native-firebase:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':react-native-firebase:compileReleaseJavaWithJavac'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.337 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
Environment
The text was updated successfully, but these errors were encountered: