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

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

Open
reisdev opened this issue Dec 18, 2018 · 5 comments

Comments

@reisdev
Copy link

reisdev commented Dec 18, 2018

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 dependencies:

"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.

@reisdev reisdev changed the title Build Failure - Methods Build Failure - method does not override or implement a method from a supertype @override Dec 18, 2018
@1rjun
Copy link

1rjun commented Dec 29, 2018

Just remoe the @overiride from base java class

@reisdev
Copy link
Author

reisdev commented Dec 29, 2018

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

@jetobe95
Copy link

Just remoe the @overiride from base java class

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

chico added a commit to chico/react-native-bluetooth-serial that referenced this issue Apr 1, 2019
@amrudesh-santhanam
Copy link

Removing the @OverRide works.

@marcusdotenv
Copy link

Remove @OverRide from line number 23 works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants