Skip to content

@Override for createJSModules() causes build error with RN 4.8 #5

Closed
@burdiuz

Description

@burdiuz

Hi!

I was trying to compile project with this library and got an error

:react-native-os:compileReleaseJavaWithJavac
:react-native-os:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
D:\www\my\ReactNativePlayground\node_modules\react-native-os\android\src\main\java\com\peel\react\RNOSModule.java:31: error: method does not override or implement a method from a supertype
    @Override
    ^
1 error
:react-native-os:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-os:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

It seems that for now removing @ Override annotation is a workaround to successfully build the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions