Setting up Android Studio

suggest change

Android Studio is the Android development IDE that is officially supported and recommended by Google. Android Studio comes bundled with the Android SDK Manager, which is a tool to download the Android SDK components required to start developing apps.

Installing Android Studio and Android SDK tools:

  1. Download and install Android Studio.
  2. Download the latest SDK Tools and SDK Platform-tools by opening the Android Studio, and then following the Android SDK Tool Updates instructions. You should install the latest available stable packages.
If you need to work on old projects that were built using older SDK versions, you may need to download these versions as well

Since Android Studio 2.2, a copy of the latest OpenJDK comes bundled with the install and is the recommended JDK (Java Development Kit) for all Android Studio projects. This removes the requirement of having Oracle’s JDK package installed. To use the bundled SDK, proceed as follows;

  1. Open your project in Android Studio and select File > Project Structure in the menu bar.
  2. In the SDK Location page and under JDK location, check the Use embedded JDK checkbox.
  3. Click OK.

Configure Android Studio

Android Studio provides access to two configuration files through the Help menu:

Change/add theme

You can change it as your preference.File->Settings->Editor->Colors & Fonts-> and select a theme.Also you can download new themes from Once you have downloaded the file, go to File -> Import Settings... and choose the file downloaded.

Compiling Apps

Create a new project or open an existing project in Android Studio and press the green Play button on the top toolbar to run it. If it is gray you need to wait a second to allow Android Studio to properly index some files, the progress of which can be seen in the bottom status bar.

If you want to create a project from the shell make sure that you have a file, which is created by Android Studio automatically. If you need to create the project without Android Studio you need a line starting with sdk.dir= followed by the path to your SDK installation.

Open a shell and go into the project’s directory. Enter ./gradlew aR and press enter. aR is a shortcut for assembleRelease, which will download all dependencies for you and build the app. The final APK file will be in ProjectName/ModuleName/build/outputs/apk and will been called ModuleName-release.apk.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents