Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to do a "Gradle sync" with terminal command?

Tags:

android

gradle

how to run gradle sync by command in linux ? I dont want "gradle build" cuz i know this would sync and build. I just want a command which does whatever button "sync project with gradle files" does in Android Studio.

like image 326
Amir Ziarati Avatar asked Sep 27 '16 13:09

Amir Ziarati


People also ask

How do you sync Gradle in terminal?

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.

How do I sync Gradle with dependencies?

Simply open the gradle tab (can be located on the right) and right-click on the parent in the list (should be called "Android"), then select "Refresh dependencies". This should resolve your issue.


1 Answers

    ./gradlew --recompile-scripts 

Will do a sync without building anything

like image 132
César Bermúdez Avatar answered Sep 20 '22 15:09

César Bermúdez