Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
392 views
in Technique[技术] by (71.8m points)

android - SyncFailed Error:Cause: org/jetbrains/plugins/gradle/tooling/ModelBuilderService

I have a project which I try to open in Android Studio however when the project is imported I receive an error

Error:Cause: org/jetbrains/plugins/gradle/tooling/ModelBuilderService

I searched on google and found that this is a common issue faced on windows. However all the solutions provided are:

  1. Delete .gradle.
  2. Invalidate Cache/Restart from File in Android Studio.
  3. Delete debug folders and files.

Here's what I've tried in addition to the above list.

  1. Reinstalled Android Studio.
  2. Deleted Android Studio Settings manually from C:/Users/<username>/.android<> old directories.
  3. Deleted %temp% folder.

This project works well in all PCs with Android Studio except this one.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

So the problem was solved by deleting the .gradle folder. Unfortunately none of the answers that I referred to described which .gradle folder I was supposed to delete.

What I did was deleted the .gradle folder inside the project structure. What you have to do is delete the .gradle folder located in

Windows:

C:/Users/<username>/.gradle.

MacOS:

~/Users/<username>/.gradle

To view hidden files on Mac press command+shift+.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...