What is the difference between project-level and module-level build.gradle?

WHAT IT TESTS: Gradle scope in multi-module Android projects. ANSWER OUTLINE: Project level sets plugin repos and shared versions; module level sets dependencies, build types, and flavors. RED FLAG: Claiming both files do the same thing or misplacing plugins.
WHAT IT TESTS: Your understanding of Gradle scope and separation of concerns in multi-module Android projects. ANSWER OUTLINE: Project-level build.gradle configures global plugin repositories, dependency resolution, and shared versions for all modules. Module-level build.gradle configures the Android plugin, application ID, dependencies, build types, product flavors, and signing configs for that specific module.
Read the original → developer.android.com
- #android
- #gradle
- #build-system
- #multi-module
- #interview
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.