Android Studio Tutorial with Kotlin (2018 Edition) – Part 1

Want to build an Android apps? Follow this guide as we learn Android app development together. Whatever type of app you want to build, there are enough similarities between apps that the first few steps are the same.

We will build a native Android app using Android Studio and Kotlin, a programming language that has gained popularity the last couple years.

Requirements

  • A laptop or desktop computer (you cannot build an Android app on your phone or tablet)
  • At least 8GB RAM (recommended)
  • a monitor (or laptop) with a screen resolution of 1280 x 800 or higher
  • internet (initially to download Android Studio 3.2, which is about 980MB)

Step 1: Install Android Studio

Visit the official Android Developer website then download and install Android Studio, the official editor for developing native Android apps using Kotlin. After installation, we’re ready for our next step!

Step 2: Open Android Studio

When you first open Android Studio, you should see a popup screen similar to the following. If you’ve already built an Android app, you will see the latest projects on the left. Because I’ve used Android Studio before, I have some recent projects. Your’s will be blank.

Step 3: Create a new project

Create a new Android Studio project

Click “Start a new Android Studio project” to create your first project. If you have an existing app you want to open, click the project name on the left side of the screen.

Step 4: Name your app and choose Kotlin

Title your Android app and confirm that Kotlin support is enabled

Application Name is the name of your app. You can easily change it later.

Company domain can be example.com (if you don’t already have a domain or don’t know what to enter)

Project location is the file folder location on your hard drive. The default is fine, and you can change this later.

With our project we’ll be using Kotlin, so it’s important to make sure the “Include Kotlin support” option is checked.

Step 5: Configure Android version compatibility

Android Studio’s device compatibility screen

Chances are you use the latest version of Android. But not all Android users are like you. Some have older versions of Android on the phone or tablet, for a variety of reasons. However, selecting API 21 is probably best for now. (It’s currently October 2018.)

Step 6: Choose a template

With Android Studio we can set up our app with just the basics and customize the app as we progress. Think of this as a blank canvas which we can build upon.

Select “Basic Activity” and click Next.
Don’t make modifications to this screen, and click Finish.

Step 7: View the Design Layout Editor in Android Studio.

Android Studio, where you’ll spend most of your time making adjustments as you build your app.

The setup for our Android app is now complete! Next let’s start building the core functionality into our app.

The next tutorial of this series will appear on Saturday, October 6, 2018.

Update: Part 2 is now available.

About the author

Daniel Malone
Bringing more than a decade of software engineering experience, Daniel Malone is Editor at androidEveryday. An Austin native, Daniel is often found reading technical books, blogging and creating YouTube tutorials. When not working, he likes to listen to pop hits on Google Play Music.

Android RecyclerView Tutorial (Part 1)

  • Most apps contain lists of data using RecyclerView.
  • In this tutorial, use ConstraintLayout and Kotlin to display a list of data.

3 weeks ago

findViewById() in Kotlin

  • As you may have discovered, findViewByid() is no longer needed.
  • Kotlin adds the ability to directly access Views.

1 month ago

Android Architecture Components Tutorial: ViewModel + LiveData

  • Use Kotlin to build a basic Android app using Android Architecture Components.
  • As part of Jetpack, LiveData and ViewModel support a MVVM app architecture.

1 month ago