react-native-bluetooth-cross-platform
react-native-bluetooth-cross-platform copied to clipboard
Compilation Fails for RN 48 - Execution failed for task ':react-native-bluetooth-cross-platform:compileReleaseJavaWithJavac'.
RN Version - 0.48.4 The android fails to run with the below error.
/node_modules/react-native-bluetooth-cross-platform/android/src/main/java/com/rctunderdark/NetworkManagerPackage.java:25: error: method does not override or implement a method from a supertype @Override ^ 1 error :react-native-bluetooth-cross-platform:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-bluetooth-cross-platform:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
In the NetworkManagerPackage.java : If we remove the @override from the below function it compiles. public List<Class<? extends JavaScriptModule>> createJSModules() { return Collections.emptyList(); }
Stumbled on the same issue, @alexkendall please resolve
The fix was merged in #20 but probably not yet published
How may I install via the #20 branch that you just showed? @FlorianGerhardt
As the branch is already in the master, you should just be able to use the repo in your package.json as shown here: https://docs.npmjs.com/files/package.json#git-urls-as-dependencies
I got the above problem solved by adding the dependencies as the following
Thank you @FlorianGerhardt
and of course, a new wild bug appears, should I raise another issue?
Nice :) Should probably open a new one