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'.
运行:工具> Android>用Gradle文件同步项目,为我修复了它。
尝试“文件”>“使缓存/重新启动无效...”可以解决您的问题!
check this link https://gradle.org/releases/
then download complete latest gradle zip file....
Go to C:\\Users\\username.gradle\\dists\\wrapper\\
Then try.....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.