Android - Environment Setup
This section walks you through setting up your local development environment for Android module development. If you already have a working Android setup, you can skip ahead to the next section. Otherwise, follow the steps below to get started.
To develop Android modules, you need a properly configured development environment. The key requirements are:
1. Install Android Studio
Android Studio is the official IDE for Android development.
- Download the latest version from Android Studio.
- Follow the installation guide for your operating system.
2. Configure SDK and Tools
- Open Android Studio and ensure the required SDKs, build tools, and platform tools are installed.
- In Android Studio, go to:
File → Settings → Appearance & Behavior → System Settings → Android SDK - Install the latest Android SDK Platform and Android SDK Build-Tools.
For detailed setup instructions, refer to the official Android SDK guide.
Java Version Management
Your Java version must match the one used for building and deploying Android modules. Using different Java versions can cause unexpected build failures and runtime issues.
1. Why Manage Java Versions?
- Ensure consistency: Prevent issues caused by version mismatches between local, CI/CD, and production environments.
- Avoid conflicts: Different projects may require different Java versions.
- Easily switch versions: Use jenv to manage multiple Java versions.
2. Install and Configure jenv
We recommend using jenv to manage Java versions, but any other tool you prefer can also be used. jenv allows you to set the correct Java version per project and switch between versions as needed.