Android

Android Gradle

Build system, dependencies, build types, flavors, signing

26 gespreksvragen·
Junior
1

What is Gradle in Android?

Antwoord

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

Antwoord

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?

Antwoord

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 gespreksvragen

Beheers Android voor je volgende gesprek

Krijg toegang tot alle vragen, flashcards, technische tests, code review-oefeningen en gespreksimulatoren.

Begin gratis