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.

Deprecated API Android

See original GitHub issue

React Native version: 0.61.2 RNC-Async-Storage version: 1.6.2 Platform: Android, Android studio 3.4.2

Current behavior

Building in Android studio throws this Java compiler information. Not sure how big deal it is.

/Users/home/Desktop/APLIKACE/test/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:24
  • Comments:26 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
ste001commented, Nov 12, 2019

I know this issue is closed, but I’m encountering the same exact issue as @LukePenkava, even the behaviour is the same.

I tried @maxKimoby solution, but it didn’t solve it, I still got the same error on AsyncStorageModule.java.

The problem is, it’s not a warning, it’s an error that prevents me from building the app.

9reactions
maxKimobycommented, Oct 31, 2019
  • Delete node_modules
  • run npm install or yarn
  • run npx jetify

Do you still have the issue?

Edit: Command is npx jetify and not jetifier as I first wrote.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecations - Android Developers
Deprecation means that we've ended official support for the APIs, but they will continue to remain available to developers. This page highlights some...
Read more >
Understanding deprecated in Android | by Nilesh Deokar
In Android deprecation usually means “We will continue to support this, but we think there are better solutions”. · The main disadvantage is...
Read more >
Deprecations | Android Enterprise - Google Developers
The following methods of the Google Play EMM API are deprecated as of September 1, 2021, and will be turned off on December...
Read more >
Deprecated API methods - Samsung Knox Documentation
Package Class Deprecated API com.samsung.android.knox EnterpriseDeviceManager setAdminRemovable(removable, pk... com.samsung.android.knox EnterpriseDeviceManager setAdminRemovable(removable) com.samsung.android.knox EnterpriseDeviceManager getAdminRemovable(pkg)
Read more >
android studio uses or overrides a deprecated API [duplicate]
Deprecated means that in the future this method will no longer be supported. There might be a new method that you should use...
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