Where is a “Sync project with gradle files” button

2019-04-19 06:46发布

问题:

This button disappeared from a new 3.1 version of AS Toolbar. Before it showed as:

Now it's missing:

回答1:

It hasn't disappeared. They have just moved it between the Save and Sync files button on the far left end of the toolbar.


Edit: They like to keep playing with the toolbar.

In Android Studio 3.3, the icon is updated and moved back across to the right:



回答2:

In Android Studio 3.3 it is here:



回答3:

Is is available from menu. Tools > Android disappeared, so find it in File > Sync Project with Gradle Files.



回答4:

For me I did following to make it visible:

  1. Go to File -> settings -> Menus and Tool bar as shown
  2. Click on Restore Default

You should see the Updated Android.MainToolBarGradleGroup as follows:

  1. Click on Apply and restart the Android Studio


回答5:

In Android Studio under 3.1 it's placed in

Tools > Android > Sync Project with Gradle Files