Skip to content

error: RNGestureHandlerPackage is not abstract and does not override abstract method createJSModules() in ReactPackage #11

@ZeroCho

Description

@ZeroCho

I followed all instructions in README.md including altering MainActivity.java and linking.

Still following error happens. Is this package not compatible with Android + RN 0.46?

C:\Users\zerocho\WebstormProjects\puzzle\node_modules\react-native-gesture-handler\android\src\main\java\com\swmansion\gesturehandler\react\RNGestureHandlerPackage.java:24: error: RNGestureHandlerPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNGestureHandlerPackage implements ReactPackage {
       ^
Note: C:\Users\zerocho\WebstormProjects\puzzle\node_modules\react-native-gesture-handler\android\src\main\java\com\swmansion\gesturehandler\react\RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
 FAILED

BUILD FAILED

Total time: 15.779 secs

FAILURE: Build failed with an exception.

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

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