title: Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'
body: <p>I am fixing a incompatibility issue related to AndroidX by adding 2 lines to <code>gradle.properties</code> under <code>android</code> for my RN 0.59 project.</p>
  
  <pre><code>android.useAndroidX=true
  android.enableJetifier=true
  </code></pre>
  
  <p>Now there is another error with <code>run-android</code> related to <code>react-native-gesture-handler</code>. Then I <code>yarn remove</code> the current <code>react-native-gesture-handler</code> of <code>1.2.0</code> and add it back. The new version is <code>1.3.0</code>. Here is the error:</p>
  
  <pre><code>&gt; Task :react-native-gesture-handler:compileDebugJavaWithJavac
  C:\D\code\js\emps_app\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;
                                ^
  C:\D\code\js\emps_app\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&lt;RNGestureHandlerEvent&gt; EVENTS_POOL =
                              ^
  C:\D\code\js\emps_app\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;
                                ^
  C:\D\code\js\emps_app\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&lt;RNGestureHandlerStateChangeEvent&gt; EVENTS_POOL =
                              ^
  C:\D\code\js\emps_app\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;&gt;(TOUCH_EVENTS_POOL_SIZE);
                     ^
  C:\D\code\js\emps_app\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;&gt;(TOUCH_EVENTS_POOL_SIZE);
                     ^
  Note: C:\D\code\js\emps_app\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
  
  &gt; Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
  
  FAILURE: Build failed with an exception.
  </code></pre>
  
  <p>The error is related 6 packages missing and I guess it is still related to Androidx. But I have no clue how to fix it. There is an issue post (for RN-gesture-handler) suggesting downgraded to version <code>1.0.5</code> for fixing but I wouldn't like to use such an old version. </p>