Complete the code to set the minimum SDK version in the build.gradle file.
android {
defaultConfig {
minSdkVersion [1]
}
}compileSdkVersion instead of minSdkVersion.The minSdkVersion specifies the lowest Android API level your app supports.
Complete the code to set the target SDK version in the build.gradle file.
android {
defaultConfig {
targetSdkVersion [1]
}
}targetSdkVersion with minSdkVersion.The targetSdkVersion tells the system which API level your app is designed to run on.
Fix the error in the code to correctly set the compile SDK version.
android {
compileSdkVersion [1]
}The compileSdkVersion must be a number without quotes.
Fill both blanks to declare the SDK versions in the build.gradle file.
android {
compileSdkVersion [1]
defaultConfig {
minSdkVersion [2]
}
}compileSdkVersion is usually the latest SDK version, here 33.minSdkVersion is the minimum supported, here 21.
Fill all three blanks to set SDK versions and version code in build.gradle.
android {
compileSdkVersion [1]
defaultConfig {
minSdkVersion [2]
versionCode [3]
}
}compileSdkVersion is set to 33.minSdkVersion is set to 21.versionCode is an integer that increments with each release, here 1.