react-native-lanscan
react-native-lanscan copied to clipboard
Running error: method does not override or implement a method from a supertype
Hi there.
When I trying to run "react-native run-android" I'm getting the following error:
Task :react-native-lanscan:compileDebugJavaWithJavac FAILED F:\Projects\JS\lanscan\node_modules\react-native-lanscan\android\src\main\java\com\odinvt\lanscan\LANScanReactModule.java:15: error: method does not override or implement a method from a supertype @Override
Library linked according to instruction. Also I tried to remove build/.grandle folders but it's doesn't helped.
My configuration:
"react": "16.6.1", "react-native": "0.57.5", Android SDK Build Tools 27.0.3
In build.gradle, the dependency points to the latest version of the facebook sdk for android. If you look for the file in facebooks repository, they removed one of the methods from the interface ReactPackage My dirty solution was to go to the build.gradle file of the package in the node_modules folder and set the version to 0.20.1. Your dependencies section would end like this:
dependencies {
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.facebook.react:react-native:0.20.1'
}