question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[error] package android.support.v4.util doesn't exist

See original GitHub issue

react-native-gesture-handler error

Hi, I follow the instruction by the react-navigation website : https://reactnavigation.org/docs/en/getting-started.html to add react-navigation:

yarn add react-navigation

yarn add react-native-gesture-handler

react-native link react-native-gesture-handler

and successfully linked

info Linking "react-native-gesture-handler" iOS dependency info iOS module "react-native-gesture-handler" has been successfully linked info Linking "react-native-gesture-handler" Android dependency info Android module "react-native-gesture-handler" has been successfully linked

and then change the MainActivity.java like the docs it asks.

everything runs fine before adding navigation.

Then run react-native run-android emulator, and error pop up :

xxxx/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util doesn't exist import android.support.v4.util.Pools; ^ xxxx/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:19: error: package Pools doesn't exist private static final Pools.SynchronizedPool<RNGestureHandlerEvent> EVENTS_POOL = ^

Your Environment

software version
react-navigation ^3.11.0
react-native 0.60.0
node v10.14.1
npm or yarn npm 6.4.1 yarn 1.16.0
react-native-gesture-handler ^1.3.0

I try to solve this by search in issues and stackoverflow, but non of them is working for me. Any advice or help is needed . Thx.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

68reactions
uttam-reddycommented, Jul 10, 2019

Try :

  1. npm install --save-dev jetifier
  2. npx jetify
0reactions
jakub-gonetcommented, Aug 24, 2020

This issue was not active for some time so I’m closing it. If you need further help please reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

package android.support.v4.util does not exist
So the error "package android.support.v4.util does not exist" simply means you have to copy the above jar file to your libs subdirectory and ......
Read more >
package android.support.v4.util does not exist - YouTube
Android : package android. support. v4. util does not exist [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Android ...
Read more >
package android.support.v4.app does not exist - YouTube
package android. support. v4.app does not exist ; in Android studio 3.
Read more >
Error: package android.support.v4.content does not exist
When I want to build this app I keep getting the following errors: error: package android.support.v4.content does not exist public class ...
Read more >
Build error: android.support.v4 package does not exist
Hi, I am trying to include android compatibility library(android.support.v4) jar into the contacts source code,to make use of viewPager and fragment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found