title: Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
body: <p>I need to use react-native-scrollable-tab-view and accompanying that, I also installed/setup react-native-viewpager following this <a href="https://github.com/react-native-community/react-native-viewpager/blob/master/README.md#mostly-automatic" rel="nofollow noreferrer">link</a>. This error suddenly appeared and currently, I still can't find a way to solve it. I hope someone encountered it already and help me. I just started working with React Native 1 wk ago but this project I've been working on have been existing for more than a year so not all dependencies are updated including react-native which version is 0.59.10. I've already tried using react-native-scrollable-tab-view with a sample project using latest version of react-native and it works fine but unfortunately I don't think I can upgrade this project cause there are just so many dependencies that will be affected that complicates things. I hope there is a way to resolve it without having to affect other dependencies. Here is the error part of the log:</p>
  
  <blockquote>
    <p>Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/node_modules/react-native-gesture-handler/android/src/main/java/com/sw
    mansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist
    import android.support.v4.util.Pools;
                                  ^
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/node_modules/react-native-gesture-handler/android/src/main/java/com/sw
    mansion/gesturehandler/react/RNGestureHandlerEvent.java:19: error: package Pools does not exist
      private static final Pools.SynchronizedPool EVENTS_POOL =
                                ^
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/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;
                                  ^
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/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 EVENTS_POOL =
                                ^
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/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&lt;>(TOUCH_EVENTS_POOL_SIZE);
                       ^
    /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/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&lt;>(TOUCH_EVENTS_POOL_SIZE);
                       ^
    Note: /Users/markrogercabadsan/ReactNativeProjects/endless-aisle-hybrid/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</p>
  </blockquote>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.</p>
  
  <blockquote>
    <p>Compilation failed; see the compiler error output for details.</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See <a href="https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings" rel="nofollow noreferrer">https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings</a></p>
  
  <p>BUILD FAILED in 24s
  251 actionable tasks: 27 executed, 224 up-to-date
  error Could not install the app on the device, read the error above for details.
  Make sure you have an Android emulator running or a device connected and have
  set up your Android development environment:
  <a href="https://facebook.github.io/react-native/docs/getting-started.html" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/getting-started.html</a>
  error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.
  Marks-MacBook-Pro:endless-aisle-hybrid markrogercabadsan$ </p>