Recall & Review
beginner
What is the purpose of the
build.gradle file in Android build configuration?The
build.gradle file defines how the Android app is built, including dependencies, SDK versions, build types, and signing configurations.Click to reveal answer
beginner
What does the
minSdkVersion specify in Android build configuration?It specifies the minimum Android OS version that the app supports, ensuring the app runs only on devices with that version or higher.
Click to reveal answer
intermediate
How do you define different build types like
debug and release in Android build configuration?In the
build.gradle file, under buildTypes, you can configure settings like code shrinking, signing, and optimization for each build type.Click to reveal answer
intermediate
What is the role of the
signingConfigs block in Android build configuration?It defines the keys and credentials used to sign the app, which is required for release builds to verify the app's authenticity.
Click to reveal answer
beginner
In Flutter, where do you find the Android build configuration files?
Inside the Flutter project, the Android build files are located in the
android/app/build.gradle and android/build.gradle files.Click to reveal answer
What does
targetSdkVersion control in Android build configuration?✗ Incorrect
targetSdkVersion tells the system which Android version the app is designed to run on, enabling compatibility behavior.
Where do you specify app dependencies for Android in a Flutter project?
✗ Incorrect
Android-specific dependencies are declared in android/app/build.gradle. Flutter packages go in pubspec.yaml.
What is the default build type when you run
flutter run?✗ Incorrect
flutter run builds the app in debug mode by default for easier testing and debugging.
Which file contains the signing key information for Android release builds?
✗ Incorrect
Signing keys are often stored in a separate key.properties file for security and referenced in build.gradle.
What is the effect of setting
minifyEnabled true in the release build type?✗ Incorrect
minifyEnabled true activates code shrinking and obfuscation to make the app smaller and harder to reverse engineer.
Explain the role of
build.gradle files in configuring an Android app within a Flutter project.Think about where Android-specific settings live and what they control.
You got /5 concepts.
Describe how you would prepare an Android app for release using build configuration settings.
Consider what changes from debug to release builds.
You got /4 concepts.