react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

uses or overrides a deprecated API.

Open mahipalsingh7 opened this issue 7 years ago • 13 comments

/Users/mini2018/Projects/ReactNative/NAME_Project/XXXX/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details. Some input files use unchecked or unsafe operations. Recompile with -Xlint:unchecked for details.

mahipalsingh7 avatar Mar 07 '19 13:03 mahipalsingh7

Duplicated of https://github.com/kmagiera/react-native-gesture-handler/issues/489

osdnk avatar Mar 07 '19 13:03 osdnk

Maybe this should be mentioned somewhere inside the documentation, as this is a know thing?!

FibreFoX avatar Mar 10 '19 16:03 FibreFoX

But why? Is it an error?

osdnk avatar Mar 10 '19 16:03 osdnk

Some companies do have restrictions as part of approval procedures 😄 it makes it more easy to discuss this with dev-leads when the used library has it written somewhere. And it is confusing devs, because it might look like something that will break in near future (even if it isn't).

So it is just for clarification ;) and making it never end up in this issue-tracker again.

FibreFoX avatar Mar 10 '19 16:03 FibreFoX

Would you like us to explicitly say in docs: using this lib cause given warning? If yes, add PR please.

osdnk avatar Jul 30 '19 11:07 osdnk

+1 I am having this issue as well

vikramkh avatar Sep 29 '19 05:09 vikramkh

same issue

baselbj avatar Sep 29 '19 14:09 baselbj

Instead of "same here", please use the appropiate feature .... and give the issue itself a thumb up, or reopen this as a new issue (I hate that "same here" spam)...

FibreFoX avatar Sep 29 '19 14:09 FibreFoX

react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java:
uses or overrides a deprecated API.

Same when trying to compile a react-native app

"react-native": "0.60.5",
"react-native-gesture-handler": "^1.4.1"

juan-dalmasso-lrn avatar Dec 10 '19 04:12 juan-dalmasso-lrn

@juan-dalmasso-lrn @baselbj @vikramkh @FibreFoX @mahipalsingh7 and everyone else had who encountered this issue:

Try downgrading the react-native-gesture-handler package to ~1.3.0. It worked for me ;)


Also, a small note to @osdnk:

If you want to close an issue, because you think it is a duplicate of another, first check whether the other issue is actually closed i.e. it has a working fix, upvoted by others or a good, succinct answer. You seem not to be doing that.

xxczaki avatar Dec 14 '19 18:12 xxczaki

I had the same issue after upgrading Gradle (to v3.5.3) in Android Studio after having installed the modules from react-navigation. (react-native 0.61.5)

This procedure worked for me: -> Unload installed modules in android studio (from project files view) -> Sync project ( it will reinstall the modules) -> Run the app

Charlicus avatar Jan 16 '20 16:01 Charlicus

For anyone else still facing this issue (after upgrading to 0.60+), make sure you removed react-native-gesture-handler from settings.gradle.

xkrsz avatar Feb 25 '20 11:02 xkrsz

I had the same Issue. But adding this to app/build.gradle solved.

dependencies:{
    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
}

viswaravi avatar Feb 27 '20 06:02 viswaravi