&是什么QUOT;同步工程与摇篮文件"究竟意味着什么? [英] What does "Sync Project with Gradle FIle " really mean?

查看:243
本文介绍了&是什么QUOT;同步工程与摇篮文件"究竟意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的工作室有一个按钮同步项目与摇篮文件,我一直用它,这是非常有用的。它会下载包的依赖,也许更多的东西。

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

但它究竟意味着什么?

But what does it really mean?

是否有 gradlew

如果我开发一个应用程序只使用gradle这个,没有IDE,我应该用什么commnd?

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

推荐答案

按钮做什么它说:它更新了Android Studio项目模型相匹配的摇篮内容构建文件。有没有相应的gradlew命令,因为没有什么,当你在命令行直接合作进行同步。当你运行其他摇篮命令,如编译的依赖关系将自动更新。

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.

这篇关于&是什么QUOT;同步工程与摇篮文件"究竟意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆