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.

react-native-fcm:compileReleaseJavaWithJavac FAILED

See original GitHub issue
/Users/jitendra/Desktop/hostmakerco/ops-mobile/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/jitendra/Desktop/hostmakerco/ops-mobile/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
    ^
Note: /Users/jitendra/Desktop/hostmakerco/ops-mobile/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.
2 errors
:react-native-fcm:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-fcm:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ssomnoremaccommented, Sep 21, 2016

Yeah, the README is also not clear on Android (and cocopods installation fails for me too). Take a look at the MainActivity instructions. RN 30 then 28 and <=27. It’s not clear at all. That being said, I’m getting the first error mentioned on RN33 with 2.1.1, which I thought was the right pair.

1reaction
sibeliuscommented, Sep 27, 2016

try to clear the android studio cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failing for android with error "Execution failed for task ...
I experienced similar error today, it is due to deprecation of certain firebase classes used by react-native-fcm. You can either rewrite the ...
Read more >
Execution failed for task ':react-native-fcm ... - GitHub
project info "react-native": "0.49.3", "react-native-fcm": "16.2.0", till yesterday there was no issue with my project, but today I am not ...
Read more >
evollu/react-native-fcm - Gitter
Hey, is there a way to set the android small icon for remote notifications? Libin Lu. @evollu.
Read more >
React native iOS build failing on M1 giving error with Class ...
Coding example for the question React native iOS build failing on M1 giving error with Class AMSupportURLSession is implemented-React Native.
Read more >
react-native-reanimated:compiledebugjavawithjavac failed
2 errors :react-native-fcm:compileReleaseJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ...
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