Skip to content

【Solve】Build failed with an exception #14

@yuansyuntw

Description

@yuansyuntw

Hello, I follow it .

LINK

But I can not build it successfully.

:react-native-screen-brightness:compileReleaseJavaWithJavac
D:\Racti Native\Anping_V002\node_modules\react-native-screen-brightness\android\src\main\java\com\robinpowered\react\ScreenBrightness\ScreenBrightnessModule.java:28: error: ScreenBrightnessModule is not abstract and does not override abstract method onNewIntent(Intent) in ActivityEventListener
public class ScreenBrightnessModule extends ReactContextBaseJavaModule
       ^
D:\Racti Native\Anping_V002\node_modules\react-native-screen-brightness\android\src\main\java\com\robinpowered\react\ScreenBrightness\ScreenBrightnessModule.java:64: error: method does not override or implement a method from a supertype
    @Override
    ^
2 errors
:react-native-screen-brightness:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

How can I modify it?
Thanks

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