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

RNGestureHandlerPackage Problem is Android #2716

Closed
shubhanshubb opened this issue Jan 6, 2024 · 5 comments
Closed

RNGestureHandlerPackage Problem is Android #2716

shubhanshubb opened this issue Jan 6, 2024 · 5 comments
Labels
Missing repro Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS

Comments

@shubhanshubb
Copy link

Description

Previously It was working but after 2-3 days I am getting this issue and in IOS it's working perfectly
/android/app/src/main/java/com/arpitrw/wiingytutorapp/MainApplication.java:15: error: package com.swmansion.gesturehandler.react does not exist
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
^
android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:37: error: cannot find symbol
import com.swmansion.gesturehandler.RNGestureHandlerPackage;
^
symbol: class RNGestureHandlerPackage
location: package com.swmansion.gesturehandler
android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:112: error: cannot find symbol
new RNGestureHandlerPackage(),

Steps to reproduce

/android/app/src/main/java/com/arpitrw/wiingytutorapp/MainApplication.java:15: error: package com.swmansion.gesturehandler.react does not exist
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
^
android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:37: error: cannot find symbol
import com.swmansion.gesturehandler.RNGestureHandlerPackage;
^
symbol: class RNGestureHandlerPackage
location: package com.swmansion.gesturehandler
android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:112: error: cannot find symbol
new RNGestureHandlerPackage(),

Snack or a link to a repository

www.github.com/shubhanshubb

Gesture Handler version

2.14.0

React Native version

0.72.7

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Missing repro labels Jan 6, 2024
Copy link

github-actions bot commented Jan 6, 2024

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@shubhanshubb
Copy link
Author

/Users/shubhanshu/Desktop/demoApp/android/app/src/main/java/com/arpitrw/wiingytutorapp/MainApplication.java:15: error: package com.swmansion.gesturehandler.react does not exist
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
^
/Users/shubhanshu/Desktop/demoApp/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:37: error: cannot find symbol
import com.swmansion.gesturehandler.RNGestureHandlerPackage;
^
symbol: class RNGestureHandlerPackage
location: package com.swmansion.gesturehandler
/Users/shubhanshu/Desktop/demoApp/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:112: error: cannot find symbol
new RNGestureHandlerPackage(),

@j-piasecki
Copy link
Member

If you have import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; anywhere in your java files, please change it to import com.swmansion.gesturehandler.RNGestureHandlerPackage;.

Otherwise, it's hard to tell exactly what's happening without a reproduction. You could also try reinstalling node_modules and doing a clean android build to see if it's caused by some stale cache.

@samy-tcheik
Copy link

samy-tcheik commented Jan 8, 2024

Hi i have the same problem in my project
my was working fine till yesterday, now i can't build my app
i have this error each time i run react-native run-android

import com.swmansion.gesturehandler.RNGestureHandlerPackage;
^
symbol: class RNGestureHandlerPackage
location: package com.swmansion.gesturehandler
mobile_app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:81: error: cannot find symbol
new RNGestureHandlerPackage(),
^
symbol: class RNGestureHandlerPackage
location: class PackageList
2 errors

i also tried to delete node modules, i also cleared cache build, wthout any results

@samy-tcheik
Copy link

samy-tcheik commented Jan 8, 2024

i've just fixed it by adding these lines in l my android/build.gradle file

buildscript {
ext {
kotlinVersion = '1.9.0'
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
}
}
hope this comment will help anyone facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests

3 participants