What does "Sync Project with Gradle File " really mean?
Asked Answered
E

1

15

In Android Studio there is a button Sync Project with Gradle File, I always use it, and it's useful. It will download dependence packages and maybe something more.

But what does it really mean?

Is there a corresponding command in gradlew?

If I develop an app just using gradle, NO IDE, what commnd should I use ?

Eureetloir answered 1/7, 2015 at 16:20 Comment(1)
You wouldn't really, that button refreshes the IDE resources to match your local resources.Patrizius
A
14

The button does what it says: it updates the Android Studio project model to match the contents of the Gradle build file.

There is no corresponding gradlew command because there is nothing to synchronize when you work with the command line directly. The dependencies will be updated automatically when you run other Gradle commands such as compile.

Agrigento answered 1/7, 2015 at 20:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.