How to Prepare an Android Application for Google Play
Prerequisites and Project Clean‑up
Before you touch the Play Console, make sure your project follows Google's publishing guidelines.
- Target SDK must be the latest stable version.
- Remove debug code (Logcat statements,
BuildConfig.DEBUGchecks). - Verify that all permissions are justified and declared in
AndroidManifest.xml. - Run
./gradlew lintand fix any critical warnings.
Updating Gradle and Dependencies
Keeping the Gradle plugin up‑to‑date reduces build‑time errors.
buildscript {
repositories { google() mavenCentral() }
dependencies { classpath "com.android.tools.build:gradle:8.2.0" }
}
After updating, sync the project and run a clean build.
Generating a Signed APK or AAB
Google Play now requires Android App Bundles (AAB) for new apps, though APKs are still accepted for existing releases.
Create a Keystore
keytool -genkeypair -v \
-keystore my-release-key.jks \
-alias release-key \
-keyalg RSA -keysize 2048 \
-validity 10000
Store the keystore in a secure location and never commit it to version control.
Configure Signing in Gradle
Add the following to app/build.gradle:
How to Prepare an iOS App for the App Store
A step-by-step technical guide to configuring Xcode, managing code signing, and ensuring your iOS app meets App Store guidelines for a smooth submission process.
Read full articleandroid {
signingConfigs {
release {
storeFile file("my-release-key.jks")
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias "release-key"
keyPassword System.getenv("KEY_PASSWORD")
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}
}
Run ./gradlew bundleRelease to produce an .aab file in app/build/outputs/bundle/release/.
Configuring the Play Console
Log into the Google Play Console and create a new application entry.
Store Listing Essentials
- App title, short description, and full description - use SEO‑friendly keywords.
- High‑resolution feature graphics (1024 × 500 px) and screenshots for each device density.
- Content rating questionnaire and privacy policy URL.
Uploading the Bundle
- Navigate to Release > Production > Create new release.
- Drag‑and‑drop the generated
.aabfile. - Fill in release notes (markdown supported).
- Review the pre‑launch report for crashes on test devices.
Testing, Staged Rollouts, and Final Release
A solid testing strategy prevents painful rollbacks.
- Internal testing (up to 100 users) for quick sanity checks.
- Closed testing (up to 2000 users) to gather broader feedback.
- Open testing for public beta before full launch.
When confidence is high, use a staged rollout (e.g., 10 % of users) and monitor Crashlytics and Google Play Console metrics. If no major issues arise, increase the rollout to 100 %.
Conclusion
Preparing an Android app for Google Play is a disciplined workflow: clean the codebase, generate a signed AAB, configure a complete store listing, and leverage the Play Console’s testing tracks. Following these steps not only satisfies Google’s technical requirements but also maximizes your app’s discoverability and user trust.