Steve Sultan
Steve Sultan's Blog

Steve Sultan's Blog

How to fix Android building fails on React Native?

Steve Sultan's photo
Steve Sultan
·Jan 28, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Building in Android bundle throws this compiler error blow:

Are you not sure how to fix ?

/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.
Delete node_modules :
rn -rf node_modules
then:
run npm install or yarn
run npx jetify

Do you still have the issue?

Source: github.com/react-native-async-storage/async..

 
Share this