0
0
Android Kotlinmobile~10 mins

Signing configuration in Android Kotlin - Interactive Code Practice

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

Complete the code to define a signing configuration in the build.gradle.kts file.

Android Kotlin
signingConfigs {
    create("release") {
        storeFile = file([1])
    }
}
Drag options to blanks, or click blank then click option'
A"keystore.jks"
B"release.keystore"
C"mykeystore"
D"debug.keystore"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put the keystore file name in quotes.
Using the wrong file name or extension.
2fill in blank
medium

Complete the code to set the keystore password in the signing configuration.

Android Kotlin
signingConfigs {
    create("release") {
        storePassword = [1]
    }
}
Drag options to blanks, or click blank then click option'
A"myPassword"
Bpassword123
C123password
D"password123"
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the password.
Using an incorrect password string.
3fill in blank
hard

Fix the error in the code by completing the alias property correctly.

Android Kotlin
signingConfigs {
    create("release") {
        keyAlias = [1]
    }
}
Drag options to blanks, or click blank then click option'
AreleaseKey
B"releaseKey"
C"release_key"
Drelease_key
Attempts:
3 left
💡 Hint
Common Mistakes
Not putting the alias in quotes.
Using an alias name with invalid characters.
4fill in blank
hard

Fill both blanks to complete the signing configuration with key password and store password.

Android Kotlin
signingConfigs {
    create("release") {
        keyPassword = [1]
        storePassword = [2]
    }
}
Drag options to blanks, or click blank then click option'
A"keypass123"
B"storepass123"
Ckeypass123
Dstorepass123
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around passwords.
Mixing up keyPassword and storePassword values.
5fill in blank
hard

Fill all three blanks to define a complete release signing configuration with store file, key alias, and key password.

Android Kotlin
signingConfigs {
    create("release") {
        storeFile = file([1])
        keyAlias = [2]
        keyPassword = [3]
    }
}
Drag options to blanks, or click blank then click option'
A"release.keystore"
B"releaseKey"
C"keypass123"
D"debug.keystore"
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting strings.
Using wrong file names or alias names.