rusel1989 / react-native-bluetooth-serial

Port of https://github.com/don/BluetoothSerial for react native
475 stars 291 forks source link

Build Failure - method does not override or implement a method from a supertype @override #97

Open reisdev opened 5 years ago

reisdev commented 5 years ago

I've been trying to build many times and received the error below:

Task :react-native-bluetooth-serial:compileDebugJavaWithJavac FAILED C:\Users\mathe\Documents\GitHub\natuino\node_modules\react-native-bluetooth-serial\android\src\main\java\com\rusel\RCTBluetoothSerial\RCTBluetoothSerialPackage.java:23: error: method does not override or implement a method from a supertype @Override ^ 1 error FAILURE: Build failed with an exception.

My dependecies:

"dependencies": {
    "react": "^16.5.1",
    "react-native": "^0.57.3",
    "react-native-bluetooth-serial": "^1.0.0-rc1",
    "react-native-elements": "^0.19.1",
    "react-native-vector-icons": "^6.1.0",
    "react-navigation": "^2.18.2",
    "react-redux": "^6.0.0",
    "redux": "^4.0.1"
}

The solution was to open the RCTBluetoothSerialPackage.java and remove the @Override. Please, fix it, if possible.

1rjun commented 5 years ago

Just remoe the @overiride from base java class

reisdev commented 5 years ago

@1rjun, I did. But I shouldn't need to do this to get the package working.

jetobe95 commented 5 years ago

Just remoe the @overiride from base java class

Thanks Works com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java:23

amrudesh-santhanam commented 4 years ago

Removing the @override works.

marcusdotenv commented 4 years ago

Remove @override from line number 23 works for me.