Home > Back-end >  Could not run phased build action using connection to Gradle distribution 'https://services.gra
Could not run phased build action using connection to Gradle distribution 'https://services.gra

Time:08-19

Hi Can anyone help me on this error Pl

Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-all.zip'. org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'android'. A problem occurred configuring root project 'android'. A problem occurred evaluating root project 'android'. A problem occurred configuring project ':app'. A problem occurred evaluating project ':app'. Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options:

  • changing the IDE settings.
  • changing the JAVA_HOME environment variable.

CodePudding user response:

1- update the gradle:

Get latest version supported by Android Studio from:

enter image description here

3- Sync Project:

  • Sync project
  • Clean Project
  • Rebuild Project

That's it.

CodePudding user response:

I hv already tried this ..But still same problem. Pl support.

Regards, Ankita

  • Related