Re-download dependencies and sync project (requires network)

24-Jul-2024

Re-download dependencies and sync project (requires network) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

Error :

Re-download dependencies and sync project (requires network)

Unable to load class 'org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider'
org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)


Unable to load class 'org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider'
org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.





Solution :

File->Settings -> Build, Execution, Deployment-> Build Tools -> Gradle
Change Gradle Jdk





After making these changes, sync your project with Gradle and rebuild it. This can be done by clicking on the "Sync Now" link in the bar that appears at the top of Android Studio when you modify the Gradle files.


Comments