Create the App

Once Android Studio is open, create a new project with an Empty Activity (we’ll be adding things manually again), and call it Android Baseball League. You can use your own package name as you wish (I like dev.mfazio.abl), and have an SDK of at least API level 26. This will make sure some newer Android features are available to us.

images/abl.initialize/abl-configure-project.png

After the new project is indexed and the Gradle sync is complete, we have a nice empty MainActivity with which to work. Before we move on to any specific views, we have some extra dependencies we’ll be using.

Add Dependencies

In this chapter, we’ll add a new grid via the RecyclerView library and a <ConstraintLayout> ...

Get Kotlin and Android Development featuring Jetpack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.