evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

Android compile error #515

Open RobertArissen opened 6 years ago

RobertArissen commented 6 years ago

Hi @evollu

My iOS version works fine. But my android compile give a error:

:react-native-fcm:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/robertarissen/Desktop/Dev/Apps/sponsorij/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingPackage.java:13: error: FIRMessagingPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class FIRMessagingPackage implements ReactPackage {
       ^
1 error
:react-native-fcm:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

How can I fix this?

"react-native": "0.45.1",,
"react-native-fcm": "^8.0.0",
dieunt commented 6 years ago

I have the same problem with: "react": "^16.0.0-alpha.12", "react-native": "^0.45.1", "react-native-fcm": "^8.0.0"

MilosR commented 6 years ago

It works with 7.5.1, (i got same error with 8.0.0), this combination works:

"react-native": "^0.46.1", "react-native-fcm": "7.5.1",

lfallet commented 6 years ago

As per the readme:

for RN < 0.47.0, use react-native-fcm@7.5.1

Therefore you should downgrade react-native-fcm to version 7.5.x or upgrade react-native to version 0.47.x and keep react-native-fcm version 8.0.x