Android

Android Gradle

Build system, dependencies, build types, flavors, signing

26 câu hỏi phỏng vấn·
Junior
1

What is Gradle in Android?

Câu trả lời

Gradle is Android's official build system. It automates code compilation, dependency management, packaging into APK/AAB, signing, and running tests. Gradle uses scripts (build.gradle) written in Groovy or Kotlin DSL. It's a flexible and powerful tool that replaces older systems like Ant or Maven.

2

What's the difference between build.gradle (Project) and build.gradle (Module: app)?

Câu trả lời

build.gradle (Project): GLOBAL configuration for all project modules. Defines repositories (Maven, Google), Android Gradle plugin versions, common dependencies. build.gradle (Module: app): SPECIFIC configuration for app module. Defines applicationId, versionCode, minSdk, targetSdk, module dependencies. A project can have multiple modules, each with its build.gradle.

3

What is applicationId in Android?

Câu trả lời

applicationId is the UNIQUE identifier of the app on Google Play Store and on device. Format: com.company.appname. Two apps with same applicationId cannot coexist. applicationId is defined in build.gradle: android { defaultConfig { applicationId 'com.example.app' } }. Don't confuse with code package name (can be different).

4

What's the difference between versionCode and versionName?

5

What is minSdk in Android?

+23 câu hỏi phỏng vấn

Nắm vững Android cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí