Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build error in React Naitve 0.60 #649

Closed
hyochan opened this issue Jun 21, 2019 · 4 comments
Closed

Android build error in React Naitve 0.60 #649

hyochan opened this issue Jun 21, 2019 · 4 comments

Comments

@hyochan
Copy link

@hyochan hyochan commented Jun 21, 2019

In react-native@0.60.rc.2 and even in rc.1, I face the issue in installing react-native-gesture-handler which should be installed along with react-navigation.

How to reproduce

  1. react-native init sample-next --version react-native@next
  2. yarn add react-navigation react-native-gesture-handler
  3. react-native link react-native-gesture-handler
  4. react-native run-android
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/home/hyochan/Documents/Github/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist
import android.support.v4.util.Pools;
                              ^
/home/hyochan/Documents/Github/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:19: error: package Pools does not exist
  private static final Pools.SynchronizedPool<RNGestureHandlerEvent> EVENTS_POOL =
                            ^
/home/hyochan/Documents/Github/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:3: error: package android.support.v4.util does not exist
import android.support.v4.util.Pools;
                              ^
/home/hyochan/Documents/Github/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:19: error: package Pools does not exist
  private static final Pools.SynchronizedPool<RNGestureHandlerStateChangeEvent> EVENTS_POOL =
                            ^
/home/hyochan/Documents/Github/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:20: error: package Pools does not exist
          new Pools.SynchronizedPool<>(TOUCH_EVENTS_POOL_SIZE);
                   ^
/home/hyochan/sample-next/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:20: error: package Pools does not exist
          new Pools.SynchronizedPool<>(TOUCH_EVENTS_POOL_SIZE);
                   ^
Note: /home/hyochan/Documents/Github/sample-next/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.
6 errors
@AyushG3112
Copy link

@AyushG3112 AyushG3112 commented Jun 21, 2019

Reason: #623

Loading

@M1seRy
Copy link

@M1seRy M1seRy commented Jul 10, 2019

same problem

Loading

@hyochan
Copy link
Author

@hyochan hyochan commented Jul 10, 2019

I've created PR for the fix.

Loading

@jkadamczyk
Copy link
Member

@jkadamczyk jkadamczyk commented Aug 21, 2020

I think we support AndroidX now and it can now be closed.

Loading

@jkadamczyk jkadamczyk closed this Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants