question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FIRMessagingModule is not abstract and does not override abstract method

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ssomnoremaccommented, Oct 19, 2016

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 because upgrade will overwrite all of that.

0reactions
ssomnoremaccommented, Oct 18, 2016

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found