Skip to main content

Step 1: Install Android Studio and required SDKs

Before building your Median Android app, install Android Studio and configure your local development environment. Download the latest version of Android Studio. Follow the steps in the Android Studio installation guide. Make sure to follow the Setup Wizard and install all recommended SDK packages.
TipDuring setup, be sure to install the Android SDK Platform and all required components.

Step 2: Download the Android source code

Download the Android source code from your app’s private management page by opening the “Build & Deploy” tab and clicking the “Download” button in the Android SOURCE CODE category.
Download button for the Android source code on the Build & Deploy tab in App Studio

Download the Android source in App Studio

Step 3: Extract the source archive

Extract the downloaded android_source.tar.gz file and open your app using one of the following methods.
  1. Double-click the android_source.tar.gz file in Windows Explorer or the macOS Finder.
  2. Open a command prompt or terminal session and run the command tar -xzvf android_source.tar.gz
Using tar commandThe tar command in method #2 requires Windows 10 or macOS. It extracts the files to a subdirectory named “android”. If a directory with the same name exists, it’s overwritten.You can change this behavior by defining a different output directory tar -xzvf android_source.tar.gz -C /target/directory
Once extracted, open the extracted directory and you will see files similar to Figure 2:
Files in the extracted Android source directory

Figure 2: Source archive content

Step 4: Open the project in Android Studio

Open Android Studio and click the “Open” button as seen in Figure 3 to open your app.
Open button on the Android Studio welcome screen

Figure 3: Open a new Android project

Now, navigate and select the extracted directory and click “Open”.
Extracted Android source directory selected in the Android Studio file dialog

Figure 4: Open the Android source directory

Next, Android Studio will ask you whether to open your project in Safe mode or to trust the project. To build/run/debug your app without restrictions, select “Trust Project”.
Android Studio dialog with the Trust Project option

Figure 5: Trust and open project

Step 5: Run or debug your app

Wait for Android Studio to initialize the project, and once finished you will see BUILD SUCCESSFUL in the Build Output panel as seen in Figure 6:
Android Studio Build Output panel showing BUILD SUCCESSFUL, with device selector and run and debug icons

Figure 6: Android Studio debug and console

Now, as seen in Figure 6, select an emulator or connect a physical Android device to your computer, and select your device in the drop-down menu. To run your application, click the run icon. Android Studio builds, installs, and runs your application on the selected emulator or device. To debug your application, click the debug icon.

Step 6: Generate a signed APK or app bundle

To create a signed bundle or apk for publishing to Google Play, you need a keystore file, generally named release.keystore, that you will use to sign your bundle or apk. If you would like to use the same keystore that we use for build through our website, please first purchase a license and then contact us. Once you have your keystore, in Android Studio, select Build → Generate Signed Bundle / APK.
Generate Signed Bundle / APK option in the Android Studio Build menu

Figure 7: Build menu

Select Android App Bundle or APK and click “Next”.
Generate Signed Bundle or APK dialog with Android App Bundle and APK options

Figure 8: Signed bundle or APK dialog

As seen in Figure 9, you will be asked to provide the path of your keystore file and the credentials attached to it. If you’re using the Median-provided keystore, use these credentials: Keystore password: password Key alias: release Key password: password
Keystore path, password, and key alias fields in Android Studio

Figure 9: Keystore configuration

Once you have entered the keystore parameters, click “Next”. As shown in Figure 10, provide the destination path of your generated Bundle / APK, select normalRelease and click “Create”.
Destination folder and normalRelease build variant selected in Android Studio

Figure 10: Release configuration

Once Android Studio has finished building the requested file, you will see a success notification at the bottom right corner of Android Studio with a locate button, as seen in Figure 11. The locate link opens the directory containing your generated file, as shown in Figure 12. Alternatively, navigate to the /normal/release directory to see your generated file.
Android Studio notification with a locate link after the build finishes

Figure 11: APK generation progress

Generated release APK file in the output directory

Figure 12: Generated APK file

Last modified on November 7, 2026