hadeelDev
hadeelDev

Reputation: 13

Unable to find method 'org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;'

I tried to run an imported project in this repo

but I got this error:

Unable to find method 'org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;'.
Possible causes for this unexpected error include:
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.

I used android studio version 3.4.1, and Gradle version 5.1.1. anyone can help please.

Upvotes: 1

Views: 5315

Answers (1)

davidhodges86
davidhodges86

Reputation: 311

I was getting the same error and fixed it by updating a dependency in the backend module:

classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.2'

to

classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.3'

Upvotes: 9

Related Questions