rusel1989 / react-native-bluetooth-serial

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

react-native-bluetooth-serial:compileReleaseJavaWithJavac FAILED #55

Open InevitableAnup opened 7 years ago

InevitableAnup commented 7 years ago

Hi I am trying to integrate react-native-bluetooth-serial into my react-native app.I followed the documentation and completed these 3 steps:- 1)Install package via npm: npm i -S react-native-bluetooth-serial 2)Link libraries with: rnpm link or react-native link for React Native >= 0.27 3)For android you also need to put following code to AndroidManifest.xml

After this I ran react-native run-android and the app started failing with the following error:- 1 error :react-native-bluetooth-serial:compileReleaseJavaWithJavac FAILED

Please revert as soon as possible. Thank you.

sn1k commented 7 years ago

Since RN >=0.47 you should delete the @override into package @Override public List<Class<? extends JavaScriptModule>> createJSModules() { return Collections.emptyList(); } Change for public List<Class<? extends JavaScriptModule>> createJSModules() { return Collections.emptyList(); }

tofoli commented 7 years ago

Can someone make the same change done here

pstanton commented 7 years ago

not sure what has to be done to get this into the npm system ? no changes to this project in 9+months...