Overview
Tareas uses Capacitor to package the web application as a native Android app. This guide covers the complete Android deployment process.Prerequisites
Install Android Studio
- Download Android Studio from developer.android.com/studio
- Install Android Studio and follow the setup wizard
- Install the Android SDK and build tools
- Configure the
ANDROID_HOMEenvironment variable:
Verify Java Installation
Tareas requires Java 21 as specified in the project README.
Initial Capacitor Setup
Add Android platform
Add the Android platform to your Capacitor project:This creates an
android/ directory with the native Android project.Building for Android
Development Build
For testing during development:Alternative: Using Ionic CLI
-l flag enables live reload, and --external makes it accessible on your local network.
Build APK for Testing
To build an APK file for distribution:-
Open the project in Android Studio:
-
In Android Studio:
- Select Build > Build Bundle(s) / APK(s) > Build APK(s)
- Wait for the build to complete
- Find the APK in
android/app/build/outputs/apk/debug/app-debug.apk
The project includes a pre-built APK at
/app-debug.apk in the root directory for testing.Running on Emulator
Create an Android Virtual Device (AVD)
Create new device
- Click Create Device
- Select a device definition (e.g., Pixel 5)
- Choose a system image (API level 24 or higher)
- Finish the setup
Running on Physical Device
Enable Developer Options
On your Android device:
- Go to Settings > About phone
- Tap Build number 7 times
- Developer options will be enabled
Connect device
Connect your device via USB and verify:You should see your device listed. If prompted on the device, allow USB debugging.
Complete Workflow
The typical development workflow:Troubleshooting
Gradle Build Fails
Solution: Check Java version (must be JDK 21):JAVA_HOME:
SDK Location Not Found
Solution: Createandroid/local.properties with:
ANDROID_HOME environment variable.
Device Not Detected
App Crashes on Launch
Check logs:Sync Errors
Ifnpx cap sync fails, try:
Build Errors After Dependency Updates
Clean and rebuild:Production Release
For releasing to the Google Play Store:Generate Signing Key
Configure Signing in Android Studio
- Open
android/app/build.gradle - Add signing configuration:
Build Release APK/AAB
In Android Studio:- Build > Generate Signed Bundle / APK
- Select Android App Bundle for Play Store
- Follow the wizard to create a signed release
Google Play Store requires Android App Bundle (AAB) format for new apps.
Next Steps
iOS Deployment
Build and deploy to iOS devices
Web Build
Deploy as a web application