From Fedora Project Wiki

Revision as of 12:35, 27 September 2019 by Rluzynski (talk | contribs)

Clear.png
The content appearing below may require cleanup
Please improve this article if you can, and move or remove this notice if appropriate.

Abstract

This page should provide "how-to" document about using Fedora Linux for developing applications for Android platform using Android Studio.

This document will cover requirements, installation, how to build a simple application and how to use Android Emulator or real devices for testing applications.

Target Fedora version

F-20 and higher

Requirements

  • GNOME or KDE desktop
  • GNU C Library (glibc) 2.15 or later
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Oracle® Java Development Kit (JDK) 7 (open jdk also works but not fully tested yet)

Installation

Download the latest version of Android Studio from the official sources. It comes with the following:

  • Android Studio IDE
  • Android SDK tools
  • Android 10.0 (Q) Platform
  • Android 10.0 emulator system image with Google APIs

After you have downloaded the *.tar.gz file from the above source, unpack the file to an appropriate location.
Suppose it has been unpacked to some location ~/android-studio
Open a terminal window and go to ~/android-studio/bin
Execute the file studio.sh by running the following command

./studio.sh

Android Studio Setup Wizard starts up and a screen as below shows up:

Android-studio-setup-wizard-01.png

Follow the steps of the wizard. It must download some components:

Android-studio-setup-wizard-02.png

The libraries are installed.

Android-studio-setup-wizard-03.png

Android Studio starts up and a screen as below shows up:
Studio-startup.jpg

Building a simple Application

Select new project. The following screen shows up:
Studio-setup-1.png