Wednesday, 21 September 2016

Android Studio on Linux

How to Install Android Studio

Before we get started, you’ll need to ensure that you have installed JDK 6 or higher (JDK7 is required for Android 5.0 and higher) on your PC.
Note: All of the following instructions, as well as the installation tutorials are for your PC. You can’t download or install Android Studio on your Android device.
To check your version, open terminal (OS specific details below) and type:
javac -version
If the JDK doesn’t show up, or you have an older version and would like to upgrade, download JDK here.

How to Set Up Android Studio on Linux

  1. Download and unpack the ZIP file on to your PC. The installer is found at the Android Studio home page.
  2. Launch Android Studio by navigating to the/android-studio/bin/directory in Terminal (Applications > Accessories > Terminal) and execute the following:studio.sh
  3. Addandroid-studio/binto your PATH environmental variable so that you can start Android Studio from any directory.
  4. Follow the setup wizard and install SDK tools

Adding & Installing Packages

  1. Click “SDK manager” in the toolbar and select one of the following from the Tools directory:
    • Android SDK Tools
    • Android SDK Platform-tools
    • Android SDK Build-tools (select the highest version)
  2. And/Or select the following from the Android X.X (latest version) folder:
    • SDK Platform
    • System image for emulation, such as ARM EABI v7a System Image
  3. Click Install X packages
  4. Accept the license agreement
  5. Click Install

How to Install Android SDK

First, download the stand-alone SDK files to your Mac, Windows or Linux PC. Next…
Note: All of the following steps will take place on your PC. You cannot install Android SDK on your phone or tablet. 

Linux

  1. Unpack the .zip file.
  2. Make a note of the location of the SDK directory on your system so that you can refer back to it easily when using the SDK tools from the command line.

No comments:
Write comments