且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除后如何重新生成build.gradle文件

更新时间:2022-06-25 07:41:39

打开IDE并仅创建一个名为 build.gradle 如果删除了顶层文件,则位于根文件夹中;如果删除了顶层文件,则位于模块内部。

Open your IDE and just create a file called build.gradlein the root folder if you deleted the top-level file, or inside a module if you deleted it.

这是一个文本文件,您必须在其中编写脚本。

It is a text file where you have to write your script.

您可以复制标准配置,只需从新项目中复制即可。当然,您必须使用依赖项和配置来自定义文件。

You can copy the standard configuration, just copying from a new project. Of course you have to customize your file with your dependencies and your configuration.