React-native-notifications: RNNotificationsPackage.java:29: error: method does not override or implement a method from a supertype

Created on 29 Aug 2017  路  10Comments  路  Source: wix/react-native-notifications

Your example it run ok. but when i create new project and follow guide it run error like this
/Users/mac/Desktop/Demo/PNDemo/node_modules/react-native-notifications/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java:29: error: method does not override or implement a method from a supertype
@Override
^
1 error
:reactnativenotifications:compileReleaseJavaWithJavac FAILED
screen shot 2017-08-29 at 10 56 51 am

Pakage.json

"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.47.2",
"react-native-notifications": "^1.1.16"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "3.0.1",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},

}

bug iOcore 馃彋 stale

All 10 comments

I believe this is due to a breaking change in RN 0.47+

Same issue here in another lib:
https://github.com/react-native-community/react-native-linear-gradient/pull/193/files?diff=split

Should we downgrade to RN 0.46 for now then?

Hello! Any solution here?

It's referenced here: https://github.com/wix/react-native-notifications/issues/99

And it seems there's already a PR for it, but nobody's merged it in.

We're working on prioritizing the issues and will provide solutions soon. sorry for the inconvenience.

I resolved this issue by removing the Override annotation, run gradlew clean and react-native run-android.

@lidanh
Please inform here, if this fix regarding this issue is merged in main repo and available as npm install...
Thanks!

@lidanh this is an Android/Java issue not iOS. Also, any update on merging the PR? (https://github.com/wix/react-native-notifications/pull/96)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

Was this page helpful?
0 / 5 - 0 ratings