Android development tutorial : Installing Android Studio and SDK

In this post, we will see how to install android studio and get started with android development. I will provide guidelines to install android studio on Mac OS but it will be very much similar in case of windows or linux too.
We will divide this post into three parts.

  • Setting up java JDK
  • Downloading and installing Android studio
  • Setting up Android SDK

Setting up java JDK:

Android studio requires JDK to be installed on the machine. If you are working with latest version of android studio, it is recommended to have JDK8.
Lets check if you have java installed or not.
  • Open terminal in Mac OS
  • Write “java -version” in terminal as below
Check Java Installation
If you get java version as above, java is installed on your machine.
If you get command not found, then you need to download and install JDK 8.

Download and install Android studio :

Drag Android studio to applications
  • Drag above android studio to applications.
  • Open Android studio app from applications now.
  • You will see below screen.
    Welcome to Android Studio
Click on next, you will get below screen,

Choose Standard Install type
Choose Standard Android studio installation and click on next.

Verify Android Studio Installation

Click on Finish

Download Android Studio Components

It will automatically download require SDK platform. Please note that it will take some time to download android SDK files as it is very large in size.
Once done, click on finish and then you will get below screen.

Start Android Studio Screen

Setting up Android SDK

Once you have downloaded Android studio, you can configure Android SDK for complete android app development.
Click on Configure in above picture
Start Android Studio Screen
Click on SDK Manager as shown in above picture.
Launch Android SDK
Click on “Launch Standalone SDK Manager” as shown in above image
You will see below screen.
Android SDK tools
I have selected the components which you need to download and install.
Click on Tools to minimize it and click on version which you want to install. In my case, I am installing Android 7.0 (API 24).
Android 7.0 API 24
You can download all files for API 24, but it will take time. I have selected the files which you may choose to download and install.
Click on “extras” which you will see at the end.

Android SDK Manager extras

I have selected items which you need to download and install. Click on install package once you select above selected items.
Once you follow above steps, you have prepared platform for developing android app. Please comment if you find any issues with above steps
Happy Android learning!!

Related Posts

  • Convert ASCII to char in C++
    15 January

    Convert ASCII to Char in C++

    Table of ContentsHow to Convert ASCII values to Char in C++?Convert ASCII to Char in C++ Using Char() FunctionConvert ASCII to Char in C++ Using C-Style CastConvert ASCII to Char in C++ Using the Assignment OperatorConvert ASCII to Character in C++ Using sprintf() FunctionConclusion The characters are represented using integers in most of the encoding […]

  • Split String by pipe in java
    15 January

    Split String by pipe(|) in java

    Table of ContentsHow to split String by pipe in javaUsing split() methodUsing StringTokenizerUsing Pattern class In this post, we will see how to split String by pipe in java. How to split String by pipe in java There are multiple ways to split String by pipe (|) in Java. Using split() method You can use […]

  • In this post, we will see how to generate random number between 1 to 10 in javascript. How to generate random number between 1 and 10 in javascript We can simply Math.random() method to generate random number between 1 and 10 in javascript. `Math.random()` returns a random number between 0(inclusive), and 1(exclusive). That means `Math.random()` returns always number lower than 1. We can use `Math.random()` with `Math.floor()` to generate random integer. Here is generic formula to generate random number in the range. Math.floor(Math.random() * (maximum - minimum + 1)) + minimum In our case, minimum = 1 maximum = 10 so it will be Math.floor(Math.random() * (10 - 1 + 1)) + 1 Math.floor(Math.random() * 10) + 1 So here is the program to generate random number between 1 and 10 in javascript. var randNum = Math.floor(Math.random() * 10) + 1; console.log(randNum) When you run above program, you will get below output: 3 You can obviously get differnt outout as we are generating random number here. Generate 10 random integers in range of 1 to 10 console.log("Generating 10 random integers in range of 1 to 10") for (let i = 0; i < 10; i++) { var randNum = Math.floor(Math.random() * 10) + 1; console.log(randNum) } Generate 10 random integers in range of 1 to 10 7 5 1 10 5 9 7 7 6 2 Generate random number in a range in javascript Here is generic formula to generate random number in a range. function generateRandomInteger(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } // Generate random number between 1 to 10 console.log(generateRandomInteger(1,10)) // Generate random number between 11 to 20 console.log(generateRandomInteger(11,20)) // Generate random number between 21 to 30 console.log(generateRandomInteger(21,30)) 4 17 28 In case, if you don't want to include maximum while generating random numbers, you can use below function. function generateRandomInteger(min, max) { return Math.floor(Math.random() * (max - min)) + min; } That's all about how to generate random number between 1 and 10 in javascript
    15 January

    Generate random number between 1 and 10 in javascript

    Table of ContentsHow to generate random number between 1 and 10 in javascriptGenerate 10 random integers in range of 1 to 10Generate random number in a range in javascript In this post, we will see how to generate random number between 1 to 10 in javascript. How to generate random number between 1 and 10 […]

  • Check if variable is String in Python
    13 January

    Check if variable is String in python

    Table of ContentsHow to check if a given variable is of the string type in Python?Using the isinstance() function.Using the type() function.Check if function parameter is String In this post, we will see what is a string in Python and how to check whether a given variable is a string or not. There are many […]

  • Check if input is Integer in C++
    13 January

    Check If Input Is Integer In C++

    Table of ContentsHow to Check Whether the Input Is an Integer in C++?Check Whether the Input Is an Integer Using the isdigit() Function in C++Check Whether the Input Is an Integer Using the Ascii Values in C++Conclusion C++ is a powerful and popular programming language and we use it widely in coding applications. It provides […]

  • Count the number of characters in a String in Python
    13 January

    Count number of characters in a string in python

    Table of ContentsWays to count the number of characters in a string in PythonUsing the len() functionUsing the for loopUsing the collections.Counter classConclusion In this post, we will see how to count number of characters in a String in Python. We can think of strings as a collection of characters, with every character at a […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.