0
0
React Nativemobile~20 mins

Android build and signing in React Native - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Android Build & Signing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding the purpose of the signing key
Why do Android apps require a signing key before publishing?

Select the best explanation.
ATo increase the app's download speed from the Play Store
BTo encrypt the app's code so users cannot see it
CTo verify the app's identity and ensure updates come from the same developer
DTo reduce the app's size by compressing resources
Attempts:
2 left
💡 Hint
Think about how the Play Store knows the app is from the original developer.
ui_behavior
intermediate
1:30remaining
Effect of incorrect signing on app installation
What happens if you try to install an Android app update signed with a different key than the original?

Choose the correct behavior.
AThe system merges both apps into one
BThe system rejects the update and shows a signature mismatch error
CThe update installs normally, replacing the old app
DThe update installs but disables all permissions
Attempts:
2 left
💡 Hint
Think about security checks during app updates.
lifecycle
advanced
2:00remaining
Keystore file lifecycle in React Native Android builds
In a React Native Android project, where should the keystore file be placed and how is it referenced during the build?

Choose the correct description.
APlace the keystore in android/app and reference it in android/gradle.properties with signing configs
BPlace the keystore in the root project folder and reference it in package.json
CPlace the keystore in android/build and reference it in MainActivity.java
DPlace the keystore anywhere and the build system automatically finds it
Attempts:
2 left
💡 Hint
Think about how Gradle uses signing configs.
navigation
advanced
1:30remaining
Choosing the correct build command for release APK
Which command correctly builds a signed release APK for a React Native Android app?

Assume the keystore and signing configs are properly set.
Acd android && ./gradlew assembleRelease
Breact-native run-android --variant=release
Cnpm run android-release
Dgradle buildRelease
Attempts:
2 left
💡 Hint
Think about the official Gradle command for building release APKs.
🔧 Debug
expert
2:00remaining
Diagnosing a build failure due to missing signing config
You run './gradlew assembleRelease' but get this error:

"SigningConfig 'release' not found"

What is the most likely cause?
AThe React Native version is incompatible with signing
BThe keystore file is corrupted and unreadable
CThe AndroidManifest.xml is missing the signingConfig attribute
DThe build.gradle file does not define a signingConfig named 'release'
Attempts:
2 left
💡 Hint
Check the build.gradle signingConfigs section.