Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 272
CoolMind Avatar asked Mar 30 '18 13:03

CoolMind


People also ask

Where is Sync project with gradle files in 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.

What is gradle sync in Android Studio?

Gradle sync is a gradle task that looks through all of your dependencies listed in your build. gradle files and tries to download the specified version.

Where is the gradle file in Android Studio?

gradle file, located in the root project directory, defines dependencies that apply to all modules in your project. By default, the top-level build file uses the plugins block to define the Gradle dependencies that are common to all modules in the project.


8 Answers

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

like image 117
Abhishek Jain Avatar answered Sep 30 '22 19:09

Abhishek Jain


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

enter image description here

like image 35
CoolMind Avatar answered Sep 30 '22 18:09

CoolMind


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
like image 22
Sagar Avatar answered Sep 30 '22 17:09

Sagar


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...).

like image 40
Filippos Zofakis Avatar answered Sep 30 '22 19:09

Filippos Zofakis


File > Sync Project With Gradle Files or this shortcut.

enter image description here

like image 37
MSilva Avatar answered Sep 30 '22 19:09

MSilva


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.

like image 28
Gk Mohammad Emon Avatar answered Sep 30 '22 17:09

Gk Mohammad Emon


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

like image 44
ivanacorovic Avatar answered Sep 30 '22 17:09

ivanacorovic


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

like image 26
No Contest Avatar answered Sep 30 '22 17:09

No Contest