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.
Will do a sync without building anything
there is no task to trigger sync / config phase directly, but you can call:
this will trigger config phase and report if it failed or was successful.
This is best practice to detect non-lazy config with the help of scans too.
You can explore al the tasks in:
Otherwise if you want to sync and build your app (as root):