Before you can start creating software for Android devices, you first need to setup an Android development environment, which includes Java Development Kit and Android Studio. The Java Development kit will give you the ability to call Java commands in Android Studio while Android Studio will give you the tools needed to create the software. By installing both, you’ll have all that you need to get started.
Installing Java Development Kit
1. Locate and open your preferred web browser and head on over to Oracle’s homepage. That’s where you’ll find the Java Development Kit.
2. Java provides several versions of the Java Development Kit, but to get the most out of it, you’ll always want the most up-to-date version. At the top of the list of versions to download, you’ll see a box with the Java logo inside. Click DOWNLOAD. You’ll get redirected.
3. On this page, there’s a list of downloads for supported platforms. Choose the download link that fits your operating system. Failure to do so will result in a program that won’t work.
Make sure you click Accept License Agreement beforehand. You can’t download the link until you do so.
4. Once the link has been downloaded (the length of time can vary on your network connection), go ahead and open the setup file by clicking the small arrow. A menu will appear. Click Open.
5. When prompted, click Run. Doing so will initiate the installation process.
6. When the setup window appears, click Next >.
7. Choose an installation folder by clicking Browse. It does default to Program Files, but you are welcome to change it. When you’ve chosen an installation folder, click Next. Doing so will start the installation of the Java Development Kit.
8. Once the installation is finished, you can click Close. Java gives you an opportunity to learn more about the Java Development Kit. By clicking Next Steps, Java will provide tutorials, API documents, developer guides as well as release notes. It’s worth a read and recommended if you’re new to the Java Development Kit.
For Apple Mac users, you’ll have additional steps to take, after the initial installation process is complete, regarding the use of Terminal.
9. Open Finder in the bottom left corner of the screen, where your dock is.
10. At the top, click the Go tab. It will produce a drop down menu. Afterwards, head down to Utilities and click it.
11. In the Utilities window, click Terminal. You may have to scroll down to find it. When Terminal is launched, type this into Terminal, “vim .bash_profile” and then press the Enter key. When that command finishes, use your arrow keys to move your cursor just below the portion of the line “export PATH.”
12. Finally, when your cursor is in place, type “export JAVA_HOME=$(/usr/libexec/java_home),” without quotations. Afterwards, press together the Command key + the S key. That will save your changes.
Installing Android Studio
1. Locate and launch your preferred web browser and head on over to Android Studio’s download page.
2. On Android Studio’s download page, before you download it, click DOWNLOAD OPTIONS. Doing so will redirect you.
3. From here, make sure the version of Android Studio is the version compatible with your operating system. Click the link that’s on the same line as your operating system.
4. When you click the link, you’ll be presented with Android Studio’s Terms and Conditions. Once you’ve read them, and agree to them, leave a checkmark in the box next to “I have read and agree with the above terms and conditions”. Afterwards, you are given the opportunity to DOWNLOAD ANDROID STUDIO FOR WINDOWS.
5. Once the link has been downloaded (the length of time can vary on your network connection), go ahead and open the setup file by clicking the small arrow. A menu will appear. Click Open.
6. When prompted, click Run. Doing so will initiate the installation process. When the setup window appears, click Next >.
7. Choose components you’d like to install. By default, Android Studio and Android Virtual Device are already checkmarked. You can leave it as is and click Next >.
7. Choose an installation folder by clicking Browse. It does default to Program Files, but you are welcome to change it. When you’ve chosen an installation folder, click Next >.
9. Before you install, you’re given the opportunity to choose a Start Menu Folder. By default, it’s Android Studio. You can leave it as is or create your own. Afterwards, click Install and the installation process will begin.
Go brew a cup of coffee while you’re waiting. Installing Android Studio may take awhile.
10. When the installation process is finished, click Next >. Afterwards, decide if you want to run Android Studio immediately after clicking Finish. Uncheck the box next to Start Android Studio if you do not want it to start after clicking “Finish”.
10. Locate and launch the Android Studio program. Doing so will prompt a setup wizard. If you have Android Studio settings to import, click Config or installation folder. If not, click Do not import settings. Then click OK.
11. Follow the setup wizard, making any changes when necessary. Afterwards, it will download any components needed.
12. Now that Android Studio is ready, you are free to create Android apps. Click Start a new Android Studio project to get started. Don’t forget to keep Android Studio up-to-date. That includes Java Development Kit.