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.

'getDrawable(int)' is deprecated(IS BUG)

See original GitHub issue

i find bug on react-native-gesture-handler please fix this getResources().getDrawable(sResolveOutValue.resourceId); TO=> ContextCompat.getDrawable(getContext(),sResolveOutValue.resourceId) on 155 line in RNGestureHandlerButtonViewManager class

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
sinisa-nimceviccommented, Jul 30, 2019

Very useful. No course of action to take - no nothing. Plus closed another thread saying it’s a duplicate of this 😄 good work

11reactions
madgreasemonkeycommented, Sep 25, 2019

Now how to find answer for this? @osdnk closed another issue telling its duplicate of this, and closed this issue without giving a proper answer. Super course of action by @osdnk . Now there is no way of getting an answer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android getResources().getDrawable() deprecated API 22
It is right that the method getDrawable (int id) of the class Resources is deprecated. You should now use the method getDrawable (int...
Read more >
getDrawable(int id) is deprecated in API 22 - Treehouse
getDrawable (int id) is deprecated in API 22. My search shows that now the same method requires more parameters, but if we use...
Read more >
Resources | Android Developers
MockResources, This class was deprecated in API level 24. Use a mocking framework ... getDrawable(int) or getDrawable(int, android.content.res.Resources.
Read more >
1169435 - Resources.getColor deprecated - Bugzilla@Mozilla
From the M preview developer documentation: public int getColor (int id) This method ... 2015 +0200 description: Bug 1169435 - Replace deprecated Resources....
Read more >
core/java/android/content/res/Resources.java
@deprecated Resources should not be constructed by apps. ... R, trackingBug = 170729553) ... @deprecated Use {@link #getDrawable(int, Theme)} instead.
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