Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. react bative code example
Example: react native run android shows deprecated items
##First, try
> npx react-native run-android warning-mode=all
##if that doesn't work try to clean gradle, from your project directory
> cd android
#then run
> gradlew clean
#after clean gradle the run
> cd..
#and run
> npx react-native run-android