Introduction: Downloading and Using Android Studio With Kotlin

About: I love to code and build stuff from stuff that can be found in your house (DIY) and love DIY. I am also a Judge for Instructables Contests.

Hi,

I hope you are all well during this pandemic. In this tutorial I will be teaching you how to download Android Studio and run your first app with Kotlin. At the end of this tutorial you should know how to download and make a simple app using Android Studio. No prior knowledge needed. This should take you roughly 15-30 minutes to complete. If you have any questions and/or comments please leave them in the comments section. I hope you enjoy and learn a lot from this tutorial.

Step 1: Download Android Studio

In order to make this app we will have to download android studio. To do that go to https://developer.android.com/studio and click Download Android Studio. Accept the terms and click download. Once the downloader has finished downloading open it. Click continue. make sure that both of the options are check then click continue. Next chose your spot of were the files should be (it is recommended for it to be in the program file). Click continue and then let it install. This could take several minutes to complete. Once completed click finish. Open Android Studio.

Step 2: Create a New Project

Now we have to create a new project. Click on Start an android studio project. Then chose the basic activity. The last step for creating your project is to name it. You could name it whatever you want, but I named it MyApp. Make sure the language is set to Kotlin. Set your minimum SDK to API 16. Then click finish.

Step 3: Running the Emulator

The emulator is a virtual device that is like your phone just virtual. To set it up go to AVD manager Click + Create Virtual Device. (If you have created a virtual device before, the window shows all of your existing devices and the + Create Virtual Device button is at the bottom.) The Select Hardware window shows a list of pre-configured hardware device definitions. Choose a device definition, such as Pixel 2, and click Next. In the System Image dialog, from the Recommended tab, choose the latest release. (This does matter). If a Download link is visible next to a latest release, it is not installed yet, and you need to download it first. If necessary, click the link to start the download, and click Next when it's done. This may take a while depending on your connection speed. System images can take up a large amount of disk space, so just download what you need. In the next dialog box, accept the defaults, and click Finish. The AVD Manager now shows the virtual device you added. If the Your Virtual Devices AVD Manager window is still open, go ahead and close it. In order to run it in Android Studio, select Run > Run 'app', or click the Run icon in the toolbar. The icon changes once your app is running. In Run > Select Device, under Available devices, select the virtual device that you just configured. A dropdown menu also appears in the toolbar. The emulator starts and boots just like a physical device. Depending on the speed of your computer, this may take a while. You can look in the small horizontal status bar at the very bottom of Android Studio for messages to see the progress.

Step 4: Conclusion

Now you should be able to make your first app in Android Studio. I hope this tutorial taught you a lot. If you would like more tutorials on Android Studio please leave your comments down below. If you liked it please share it with your friends. If you have any questions and/or comments please leave them in the comments section.