Reputation: 53
I open my project in android studio by importing the build.gradle, the project used to work fine before but now I get an error that says that the gradle project sync failed. I tried a build and it says Task '' not found in the root project 'projectname'.
This what shows up in log files.
2015-01-20 11:50:03,315 [ 58495] WARN - radle.project.ProjectSetUpTask -
2015-01-20 11:50:03,316 [ 58496] INFO - radle.project.ProjectSetUpTask - Cause: unexpected end of block data
org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle installation '/home/avidbot/android-studio/gradle/gradle-2.2.1'.
Upvotes: 0
Views: 3623
Reputation: 1
check this link https://gradle.org/releases/
then download complete latest gradle zip file....
Go to C:\Users\username.gradle\dists\wrapper\
Then try.....
Upvotes: 0
Reputation: 49
Try File > Invalidate Caches/Restarts... This could fix your problem!
Upvotes: 0
Reputation: 21
Running: Tools > Android > Sync Project with Gradle Files, fixes it for me.
Upvotes: 2