0
0
Fluttermobile~10 mins

Android build configuration in Flutter - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the minimum SDK version in the Android build configuration.

Flutter
android {
  defaultConfig {
    minSdkVersion [1]
  }
}
Drag options to blanks, or click blank then click option'
A21
BcompileSdkVersion
CtargetSdkVersion
DversionCode
Attempts:
3 left
💡 Hint
Common Mistakes
Using compileSdkVersion instead of minSdkVersion.
Putting a string instead of a number.
2fill in blank
medium

Complete the code to set the application ID in the Android build configuration.

Flutter
android {
  defaultConfig {
    applicationId "[1]"
  }
}
Drag options to blanks, or click blank then click option'
Acom.example.myapp
BminSdkVersion
CversionCode
DtargetSdkVersion
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers or variables instead of a string.
Confusing applicationId with versionCode.
3fill in blank
hard

Fix the error in the code to correctly set the target SDK version.

Flutter
android {
  defaultConfig {
    targetSdkVersion [1]
  }
}
Drag options to blanks, or click blank then click option'
AminSdkVersion
B"30"
CcompileSdkVersion
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the SDK version number inside quotes.
Using compileSdkVersion instead of targetSdkVersion.
4fill in blank
hard

Fill both blanks to set the version code and version name in the Android build configuration.

Flutter
android {
  defaultConfig {
    versionCode [1]
    versionName "[2]"
  }
}
Drag options to blanks, or click blank then click option'
A5
B1.0.0
C21
D2.0
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around versionCode.
Using a number for versionName without quotes.
5fill in blank
hard

Fill all three blanks to configure the compile SDK version, build tools version, and enable multidex.

Flutter
android {
  compileSdkVersion [1]
  buildToolsVersion "[2]"
  defaultConfig {
    multiDexEnabled [3]
  }
}
Drag options to blanks, or click blank then click option'
A33
B33.0.0
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around compileSdkVersion or multiDexEnabled.
Using false instead of true for enabling multidex.