Vishwanath.M
Vishwanath.M

Reputation: 6307

Android Studio - Sync Project With Gradle files

Sync Project With Gradle files option in android studio is disabled for my android studio project, how can i enable this.?

Upvotes: 7

Views: 4744

Answers (3)

Nitin Patel
Nitin Patel

Reputation: 1651

I had same problem for my old project and I tried other solution but it is not working for me.

Solution worked for me:

  • Open settings.gradle file (or any build file)
  • Click on key "trust" and wait for automatic gradle build

Upvotes: 0

user
user

Reputation: 1677

Open New->Import Project-> select your project and open it. Hope this will Help

Upvotes: -1

Rhama Arya Wibawa
Rhama Arya Wibawa

Reputation: 360

I just got this problem and got the "Sync Project with Gradle files" re-enabled after I detach the Gradle link and then re-open the project.

To detach Gradle link:

  • Open Gradle Windows, from View -> Tool Windows -> Gradle menu,
  • Remove the project from that window with the (-) button,
  • Close project.
  • Reopen.

Hope this helps.

Upvotes: 3

Related Questions