CJR
CJR

Reputation: 3592

Failed Gradle sync

I got this error today when starting up Android studio:

Error:Unable to find method 'org.gradle.api.tasks.Sync.getInputs()Lorg/gradle/api/internal/TaskInputsInternal;'.
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 am using Android Studio Canary 2.3 and heres my gradle version:

classpath 'com.android.tools.build:gradle:2.3.0-alpha3'

I tried the suggested solutions but none did work. Any suggestions on how to solve?

Upvotes: 2

Views: 2331

Answers (1)

Loong_T
Loong_T

Reputation: 472

Check your gradle version with gradle --version. Gradle 2.14.1 is working no more.

I updated it to 3.2.1, and that works for me.

You can get lastest gradle from gradle.org. Or change your version in gradle-wrapper.properties if using wrapper.

Upvotes: 12

Related Questions