Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. code example
Example 1: 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
Example 2: Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings.
--warining-mode=all --stacktrace