Saturday, September 12, 2015

[Android] Chapter 1: Preparation and Installation

Hello! So, you want to know how to make Android apps huh? You don't want any chitchat and you want to go right to the point? You are at right place then!

What will you need:
  • Android Studio
  • Android SDK
  • JDK
  • Genymotion (optional)

Android Studio:

You can download Android Studio at official site here.

You can easily install it on Linux using paolorotolo repositories:
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
Note: You are not required to install "Android Virtual Device" during the Android studio installation. You can launch you apps on real device, or use Genymotion, which is much faster alternative.

Android SDK:

Surprise! Android SDK comes bundled with Android Studio installation! This means that there should be no need to install it manually. If for some reason you need to download and install it manually, you can download it from here.


JDK can be downloaded at official Oracle site here. Just click on "JDK Download" button.

You can easily install it on Linux using webupd8team repositories:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then you can switch between Java versions using:
sudo update-alternatives --config java


Genymotion is Android emulator - it is pretty fast, and also free for personal usage. It can be downloaded here.

In genymotion you can easilly add new device with specific "Android version" and "Device model". Then you can run it just by hitting Start button.

First run:

When you run Android studio for the first time, you need to install and update Android SDK. You can do this in "Android SDK Manager".

This can be found in Configure -> SDK Manager. ("Tools -> Android -> SDK Manager" in case you have the Android Studio IDE already opened).

In SDK Manager you basically install these things:
  • Tools
    • Android SDK Platform-tools
    • Android SDK Build-tools
  • Android X.X (Api XX)
    • SDK Platform
    • Google APIs
    • Documentation for Android SDK (optional)
    • Sources of Android SDK (optional)
  • Extras
    • Android Support Repository
    • Android Support Library
    • Google Repository
    • Google Play services

Here is the example of my SDK Manager, with everything necessary installed:

Note: During the app development, you can encounter problems like this one:

In this case, you have to open SDK Manager again, and install "Android SDK Build-tools" revision "22.0.1".


If you have installed Android studio with Android SDK, and you have properly installed JDK, then your system should be ready for starting developing Android apps.

No comments :

Post a Comment