deprecated gradle features were used in this build making it incompatible with gradle 7.0. react 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