Skip to content

Linux Android Development

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux Android Development Guide

Complete beginner-friendly guide to Android development on Linux, covering Arch Linux, CachyOS, and other distributions including Android Studio, ADB, and app development.


Table of Contents

  1. Android Studio Installation
  2. ADB Setup
  3. Android Development
  4. Troubleshooting

Android Studio Installation

Install Android Studio

Arch/CachyOS:

# Install Android Studio
yay -S android-studio

# Or download from developer.android.com

Debian/Ubuntu:

# Download from developer.android.com
# Or use snap
sudo snap install android-studio --classic

Fedora:

# Download from developer.android.com

Launch Android Studio

Start Android Studio:

# Launch
android-studio

# Or from application menu

ADB Setup

Install ADB

Arch/CachyOS:

# Install ADB
sudo pacman -S android-tools

# Verify
adb version

Debian/Ubuntu:

sudo apt install adb

Fedora:

sudo dnf install android-tools

Connect Device

Connect Android device:

# Enable USB debugging on device
# Connect via USB
adb devices

# Should show device

Android Development

Create Project

New project:

  1. Android StudioNew Project
  2. Select template
  3. Configure project
  4. Start coding

Build APK

Build application:

  1. BuildBuild Bundle(s) / APK(s)
  2. Select APK
  3. Wait for build
  4. Locate APK file

Troubleshooting

ADB Not Detecting Device

Fix permissions:

# Add udev rules
sudo vim /etc/udev/rules.d/51-android.rules

Add:

SUBSYSTEM=="usb", ATTR{idVendor}=="####", MODE="0666"

Summary

This guide covered Android development setup for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally