Android

Android Gradle

Build system, dependencies, build types, flavors, signing

26 คำถามสัมภาษณ์·
Junior
1

What is Gradle in Android?

คำตอบ

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)?

คำตอบ

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?

คำตอบ

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 คำถามสัมภาษณ์

เชี่ยวชาญ Android สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี