react-native run-android : Failed to notify project evaluation listener

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Failed to notify project evaluation listener.
com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

Open your app via Android Studio, you will get more info to resolve the issue.
gradle-sync-issues
The versions of the Android Gradle plugin and Gradle are not compatible.
Please do one of the following:

  • Update your plugin to version 2.4.
  • Downgrade Gradle to version 3.5.