Skip to content
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

react-native-fcm:compileReleaseJavaWithJavac FAILED #10014

Closed
jitenderchand1 opened this issue Sep 21, 2016 · 8 comments
Closed

react-native-fcm:compileReleaseJavaWithJavac FAILED #10014

jitenderchand1 opened this issue Sep 21, 2016 · 8 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@jitenderchand1
Copy link

/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.
@satya164
Copy link
Contributor

@facebook-github-bot stack-overflow

@ghost
Copy link

ghost commented Sep 21, 2016

Hey @jitenderchand1 and thanks for posting this! @satya164 tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO.

@ghost ghost added the For Stack Overflow label Sep 21, 2016
@ghost ghost closed this as completed Sep 21, 2016
@ghost ghost added the Ran Commands One of our bots successfully processed a command. label Sep 21, 2016
@wiadev
Copy link

wiadev commented Sep 22, 2016

@jimthedev I'm having same error. did you find a solution?

@jitenderchand1
Copy link
Author

jitenderchand1 commented Sep 22, 2016

which version of react native are you using?

@wiadev
Copy link

wiadev commented Sep 22, 2016

@jimthedev Thanks for quick response.
"react-native": "0.31.0",
"react-native-fcm": "^1.1.0",

@jitenderchand1
Copy link
Author

Then check your react-native-fcm version. The document says
If you are running RN < 0.33.0, you need to user react-native-fcm@1.1.0
so use npm install react-native-fcm@1.1.0

@wiadev
Copy link

wiadev commented Sep 22, 2016

@jitenderchand1 my bad. I was using @1.1.1 . downgraded to 1.1.0 and works like a charm. Thanks.

@bkhurjawal
Copy link

I got the same issue, I solved it by commenting @OverRide files in
node_modules/react-native-twitter-signin/android/src/main/java/com/goldenowl/twittersignin/TwitterSigninPackage.java:28

screen shot 2017-09-15 at 12 12 27 pm

Hope it helps!

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants