What you need to begin Programming
- A computer running Linux, macOS, or Windows (Recommended System Specs)
- JDK Installation
- Android Studio version 3.0 or later
- An Android smartphone
- USB Cable
Step 1: Setup Java Development Kit (JDK)
We know that Java is mainly used to write the android code, to do some Java Programming we will need to install Java Development Kit (JDK ). JDK is a bundle of software from Oracle Corporation that contains some useful stuff to develop Java based Applications and Applets.
If JDK is not already installed on your computer, you can download the corresponding JDK for your computer OS here. The latest version is the JDK Version 8.
Installing JDK is pretty easy as you only need to launch the downloaded file and follow onscreen prompts to complete the installation. After that, you just have to set PATH and JAVA_HOME variables to the JDK program folder – to set the environment variables for Windows click here, for Mac OS X click here
Step 2: Install Android Studio(AS)
JDK does its thing in the background but we will be writing our code directly on Android Studio. Android Studio is your window into Java and that why we need to install it. Android Studio bundles the Android SDK and configures it automatically for you,
To install Android Studio on Windows, proceed as follows:
- Download the latest Android Studio version 3.3 here
- Launch the executable file you downloaded.
- Follow the setup wizard to install Android Studio and any necessary SDK tools.
To install Android Studio on your Mac, proceed as follows:
- Download the latest Android dmg file here
- Launch the Android Studio DMG file.
- Drag and drop Android Studio into the Applications folder, then launch Android Studio.
- Select whether you want to import previous Android Studio settings, then click OK.
- The Android Studio Setup Wizard guides you through the rest of the setup, which includes downloading Android SDK components that are required for development.
Be sure to tick the checkbox to tell the installer that you want the Android SDK as well and make a note of where Android Studio itself and the SDK are being installed.
The AS that we have installed is all-in-one program that includes the IDE, emulator (Android Virtual Machine)machine manager and, of course, the Android SDK. Java is needed to write the programs, the Android SDK is needed to make those programs run on Android and Android Studio has the job of putting it all together for you.
Android Studio version 2.2 and higher comes with the latest OpenJDK embedded in order to have a low barrier to entry for beginners. It is, however, recommended to have the JDK installed on your own as you are then able to update it independent of Android Studio.
For the picture guide of the installation, see this page.
Congratulations! You have just finished setting up Android Development Environment. It wasn’t that difficult, was it? A little dedication and you will start making Android apps soon.