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.
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.
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.
./gradlew --recompile-scripts
Will do a sync without building anything
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With