Guides the user through distributing Tauri applications for Android, including Google Play Store submission, APK and AAB generation, build configuration, signing setup, and version management.
Guides the user through distributing Tauri applications for Android, including Google Play Store submission, APK and AAB generation, build configuration, signing setup, and version management.
Distributing Tauri Apps for Android
This skill covers the complete workflow for preparing and distributing Tauri v2 applications on Android, including Google Play Store publication.
Complete store listing (title, description, screenshots)
Set content rating
Configure pricing and distribution
Submit for review
First Release Requirements
The initial submission requires manual upload through Play Console for signature verification. Google will manage your app signing key through Play App Signing.
Automation Note
Tauri currently does not offer built-in automation for creating Android releases. However, you can use the Google Play Developer API for automated submissions in CI/CD pipelines.
Troubleshooting
Build Fails with Signing Error
Ensure your keystore path is absolute or relative to the correct directory:
# Absolute path
storeFile=/Users/username/keys/release-key.keystore
# Relative to gen/android directory
storeFile=../../release-key.keystore
Version Code Not Incrementing
If using auto-calculation, ensure your package.json or Cargo.toml version is updated. For manual control:
{"bundle":{"android":{"versionCode":2}}}
APK Not Installing on Device
Check minimum SDK version compatibility:
# Check device Android version
adb shell getprop ro.build.version.sdk
AAB Too Large
Consider using --split-per-abi for testing, but for Play Store, Google handles this automatically. If still too large:
Optimize your frontend assets
Use dynamic feature modules
Enable ProGuard/R8 minification
Quick Reference
Common Build Commands
# Development build
npm run tauri android dev
# Release AAB for Play Store
npm run tauri android build -- --aab
# Release APK for testing
npm run tauri android build -- --apk
# Specific architecture
npm run tauri android build -- --aab --target aarch64