使用gradle文件同步项目和与文件系统同步之间有什么区别? [英] What is the difference between Sync project with gradle files and Sync with File System?

查看:99
本文介绍了使用gradle文件同步项目和与文件系统同步之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于与Gradle文件同步项目,我经历了各种各样的回答.但是我找不到 Gradle Files和File System 之间的主要区别.

I have been through various answers with respect to the Sync project with Gradle files. But I couldn't find the major difference between Gradle Files and File System.

要制作/构建项目,我们需要将该项目与Gradle文件同步.但是,当我们使用使用文件系统同步时,是否需要这样做?

For making/building a project, we need to sync the project with Gradle files. But does it need to be done when are we using the Sync using File system?

推荐答案

使用gradle文件同步项目会更新Android Studio项目模型以匹配Gradle构建文件的内容.

sync project with gradle files updates the Android Studio project model to match the contents of the Gradle build file.

没有相应的gradlew命令,因为直接使用命令行时没有任何要同步的内容.当您运行其他Gradle命令(如compile)时,依赖关系将自动更新.

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.

与文件同步会在添加或删除了一些新文件或目录并且项目与此不同步的情况下更新项目

And sync with file updates the projects if some new files or directories are added or removed and project does not sync with this

工作似乎相同,但这是基本区别

The working seems same but this is the basic diffrence

这篇关于使用gradle文件同步项目和与文件系统同步之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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