Async-storage: AsyncStorageModule.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details.

Created on 19 Nov 2019  路  7Comments  路  Source: react-native-async-storage/async-storage

Hi, I am using current version of async-storage:1.6.3 and react-native:0.61.4 but I got a error after install the package.

Error: AsyncStorageModule.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details.

Most helpful comment

I'm also still experiencing this issue.
Enabling multiDexEnabled did not help.

See my cross post : here

All 7 comments

Didn't work for me, but it looked like this comment solved this problem for some people.

You can try this, or if you scroll up on the comments, someone tried to clean Gradle and/or re-install Android Studio with the SDKs.

As for me, I found a solution which worked, but I still don't know how or why. I went to the build.gradle on Project Level, and added a specific kotlinVersion to it, like this:

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        kotlinVersion="1.3.41"
    }
...

Can you check if you MainActivity.java on line 19 is with correct Override annotation:

@Override

Mine was without @

@ricaragao then it's not an annotation

@harleenarora
Can you provide the full error code/message?

Hi, I have already solved this issue using multiDexEnabled true

@harleenarora Great, closing the issue then 馃憤

I'm also still experiencing this issue.
Enabling multiDexEnabled did not help.

See my cross post : here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhammadn picture muhammadn  路  58Comments

dominiczaq picture dominiczaq  路  22Comments

santhanakrishnanstark picture santhanakrishnanstark  路  67Comments

cpojer picture cpojer  路  34Comments

josmithua picture josmithua  路  20Comments