简体   繁体   中英

Flutter build.gradle

I am a newbie to Flutter. Just wanna ask how many build.gradle files are in a Flutter project; what is Project-level and App-level build.gradle? Thanks in advance.

I found 2:

> android > app > build.gradle > android > app > src > build.gradle

In a Flutter project, there are two build.gradle files: one at the project-level and one at the app-level.

The project-level build.gradle file is located in the root directory of your Flutter project and is used to define the properties and settings for the entire project. This file is usually used to configure the repositories and dependencies for your Flutter project as a whole.

The app-level build.gradle file is located in the android directory within your Flutter project and is used to define the properties and settings specific to your Android app. This file is used to configure the app-level dependencies and build settings.

So in summary, there are two build.gradle files in a Flutter project: one at the project-level and one at the app-level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM