Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio gradle sync error

After trying a preview version that gave me odd errors, i just did a fresh install of Android Studio 1.1.0 on Ubuntu Linux. I also removed the preferences directory to start from scratch.

Now even with new projects gradle sync fails with this error and i cannot find the cause or other informations that can give me hints about the cause:

Error:Cause: org.jetbrains.plugins.gradle.tooling.ModelBuilderService: Provider org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl not found

Does anybody knows how to fix this?

like image 664
marcopar Avatar asked Mar 12 '15 21:03

marcopar


People also ask

How do I fix Gradle sync failed?

Then open Android Studio and go to File > Settings > Build, Execution and Deployment > Gradle > Use Gradle from > Set the path of the downloaded Gradle. Step 4. Now try syncing the Gradle again and check if the error still persists.

Why is my Gradle not syncing?

Resolution is simple. Open the "Android SDK Manager", update all packages and then restart your Android Studio. After that you project should compile without any issues.

How do I sync Gradle with Android Studio?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.


1 Answers

Solved by deleting the $HOME/.gradle folder.

I guess executing the preview version messed up something there.

like image 199
marcopar Avatar answered Sep 21 '22 12:09

marcopar