What does “Sync Project with Gradle File ” really mean?

╄→尐↘猪︶ㄣ 提交于 2019-12-20 19:24:31

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/31166761/what-does-sync-project-with-gradle-file-really-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!