chrisfisher / react-native-directed-scrollview

UNMAINTAINED- see below. A natively implemented scrollview component which lets you specify different scroll directions for child content.
MIT License
149 stars 67 forks source link

Build error on android #12

Closed davvvid1 closed 7 years ago

davvvid1 commented 7 years ago

After installation when I try to build and run on android device I see:

...
:react-native-directed-scrollview:processReleaseResources
:react-native-directed-scrollview:generateReleaseSources
:react-native-directed-scrollview:incrementalReleaseJavaCompilationSafeguard
:react-native-directed-scrollview:compileReleaseJavaWithJavac
:react-native-directed-scrollview:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/home/default/projects/react-native/AwesomeProject/node_modules/react-native-directed-scrollview/android/src/main/java/com/rnds/DirectedScrollView.java:161: error: no suitable method found for emitScrollEvent(DirectedScrollView)
    ReactScrollViewHelper.emitScrollEvent(this);
                         ^
    method ReactScrollViewHelper.emitScrollEvent(ViewGroup,float,float) is not applicable
      (actual and formal argument lists differ in length)
    method ReactScrollViewHelper.emitScrollEvent(ViewGroup,ScrollEventType) is not applicable
      (actual and formal argument lists differ in length)
    method ReactScrollViewHelper.emitScrollEvent(ViewGroup,ScrollEventType,float,float) is not applicable
      (actual and formal argument lists differ in length)
/home/default/projects/react-native/AwesomeProject/node_modules/react-native-directed-scrollview/android/src/main/java/com/rnds/DirectedScrollView.java:166: error: method emitScrollEndDragEvent in class ReactScrollViewHelper cannot be applied to given types;
      ReactScrollViewHelper.emitScrollEndDragEvent(this);
                           ^
  required: ViewGroup,float,float
  found: DirectedScrollView
  reason: actual and formal argument lists differ in length
/home/default/projects/react-native/AwesomeProject/node_modules/react-native-directed-scrollview/android/src/main/java/com/rnds/DirectedScrollViewPackage.java:20: error: method does not override or implement a method from a supertype
  @Override
  ^
Note: /home/default/projects/react-native/AwesomeProject/node_modules/react-native-directed-scrollview/android/src/main/java/com/rnds/DirectedScrollViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
:react-native-directed-scrollview:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.
...

My environment:

         "dependencies": {
        "react": "16.0.0-alpha.12",
        "react-native": "0.47.1",
        "react-native-directed-scrollview": "1.2.1"
    },
    "devDependencies": {
        "babel-jest": "20.0.3",
        "babel-preset-react-native": "2.1.0",
        "jest": "20.0.4",
        "react-test-renderer": "16.0.0-alpha.12"
    }

node -v
v7.4.0

Any ideas what is wrong?

chrisfisher commented 7 years ago

@davvvid1 Should be fixed with 1.3.0