CoolMind
CoolMind

Reputation: 28875

Where is a "Sync project with gradle files" button in Android Studio 3?

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

Now it's missing:

enter image description here

Upvotes: 34

Views: 78739

Answers (10)

Sergey Zakharov
Sergey Zakharov

Reputation: 81

If you are creating React Native application, make sure that you opened your project in ~/YourProjectName/android folder

Upvotes: 7

Abhishek Jain
Abhishek Jain

Reputation: 3702

EDIT: They like to keep playing with the toolbar.

Since Android Studio 3.3, the icon has been updated and moved back across to the right:

enter image description here


Original answer:

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

enter image description here

Upvotes: 56

ivanacorovic
ivanacorovic

Reputation: 2867

I had to open /android/ on its own in Android Studio (you can click Open for Editing in Android Studio in the top right corner) and then you have this options in the toolbar and in File/Synch Project with Gradle Files (when viewing .gradle file).

enter image description here

Upvotes: 4

Filippos Zofakis
Filippos Zofakis

Reputation: 581

If you encounter this issue within a Flutter project and you cannot find the sync method, you can click on the build.gradle file and then click on Open for Editing with Android Studio at the top right. This will open just the Android project in a new Android Studio window and you will be able to see all the Gradle commands then (for example, under File > Sync...).

Upvotes: 12

MSilva
MSilva

Reputation: 161

File > Sync Project With Gradle Files or this shortcut.

enter image description here

Upvotes: 6

Gk Mohammad Emon
Gk Mohammad Emon

Reputation: 6976

You can use this shortcut Ctrl + Shift + A to get not only sync but also other action if you found trouble to get them.A window will appear and you can type some command that you would like IntelliJ to run. Just type "sync" in there and it will find that command Sync Project with Gradle Files, even if it's not visible on the menu.

Upvotes: 2

Acuna
Acuna

Reputation: 1837

In Android Studio under 3.1 it's placed in

Tools > Android > Sync Project with Gradle Files

Upvotes: 0

CoolMind
CoolMind

Reputation: 28875

In Android Studio 3.3 it is here:

enter image description here

Upvotes: 32

Sagar
Sagar

Reputation: 24947

For me I did following to make it visible:

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

You should see the Updated Android.MainToolBarGradleGroup as follows: Updated Menu

  1. Click on Apply and restart the Android Studio

Upvotes: 11

CoolMind
CoolMind

Reputation: 28875

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

enter image description here

Upvotes: 16

Related Questions