FIRMessagingModule is not abstract and does not override abstract method
See original GitHub issueHi I’ve got the following errors and can’t build the app in android.
/Users/dyea/Juno/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java:30: error: FIRMessagingModule is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener
public class FIRMessagingModule extends ReactContextBaseJavaModule implements LifecycleEventListener, ActivityEventListener {
^
/Users/dyea/Juno/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java:158: error: method does not override or implement a method from a supertype
@Override
^
/Users/dyea/Juno/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java:162: error: method does not override or implement a method from a supertype
@Override
^
Note: /Users/dyea/Juno/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
:react-native-fcm:compileReleaseJavaWithJavac FAILED
react-native: 0.31.0
in android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Thank you for your support
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:23 (8 by maintainers)
Top Results From Across the Web
FIRMessagingModule is not abstract and does not override ...
I got this for a second time, first being #121, after upgrading my Android build tools. After running ./gradlew clean and removing ~/.gradle/ ......
Read more >Class is not abstract and does not override abstract method
The error I am receiving when I compile is: MyTestApp.Rectangle is not abstract and does not override abstract method drawEllipse(java.awt.
Read more >Error: not abstract and does not override abstract method test ...
MobilePageObject$1> is not abstract and does not override abstract. method test(net.serenitybdd.core.pages.PageObject) in java.util.function.Predicate.
Read more >I keep getting an error: java: GUI is not abstract and does not ...
I keep getting an error: java: GUI is not abstract and does not override abstract method. I can't figure out the problem, my...
Read more >How to override an abstract method with a non-abstract method?
Hello, So I've been trying to to complete the Search decorator tutorial which can be found here: Create a search decorator tutorial, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I finally tracked this down. It is an issue with not having the correct gradle version for the react-native version, I think.
If any one has this issue, you have to run
react-native upgrade
which is a painful process because you have to either diff carefully or afterwards re-add all of your modules becauseupgrade
will overwrite all of that.@pfeodrippe just coming back to this after taking a break. I still get the same exact error. I tried on RN33, RN33.1, and RN35 using FCM2.3.2, same error. Can you explain what it was that wasn’t updating? Thanks