New Projects

Android Studio 2: The New UI

Course 2 · Chapter 3 · Templates and Project Views

Every project starts at the New Project wizard, and the choice you make on its first screen decides what the rest of your project looks like: Jetpack Compose or the older XML Views, whether there is a res/layout folder, whether C++ is involved. The wizard is shorter than it used to be, so this chapter is quick to read, then spends its second half on what you see after Finish: the Project tool window and its many views, and the Resource Manager.

What was checked, and how
Checked on a real install. The wizard's two screens, the full template list, the Compose and Views details pages, the Project view drop-down, the Android view and the Resource Manager come from screenshots of Android Studio Rabbit 2 (stable, 2026.2.2) taken on 2026-11-20 and 2026-11-21, plus the folder layout of a generated Compose project.
Checked in the docs. One web search against Google's Create a project page (see the Not Yet Verified box).
Not run by me. The values in the exercises are examples; names such as com.example.scratch are placeholders, not your own.

Starting the Wizard

From the Welcome screen choose New Project. With a project already open, use File > New > New Project... (the File menu's New entry opens a sub-menu, as seen in Chapter 1). The wizard is a dialog with two screens, driven by Previous, Next, Cancel and Finish buttons: a template page, then one page of details. Next is available on the first screen; Finish only on the second.

Screen 1: Choose a Template

The left of the dialog lists categories: Create with AI... (a separate entry at the top), then Phone and large screens (selected by default), Wear OS, Television, Car and XR. The right shows the templates for the selected category as a grid of phone-shaped pictures; the list scrolls. For Phone and large screens the install checked offered ten:

TemplateWhat the screenshots show
No ActivityA dashed empty box: a project with no screen at all.
Empty ActivityThe default, with the Compose logo. Its details page reads Create a new empty activity with Jetpack Compose. This is the template this course and the Compose-first Android courses use.
Gemini APITagged Preview: a starter for apps that call Google's Gemini models.
Navigation UI ActivityShows the Compose logo above a bottom navigation bar. I did not open it to confirm it is Compose.
Basic Views ActivityName says Views: the XML-based path, with a floating action button in its picture.
Empty Views ActivityDetails page reads Creates a new empty activity, with a Language field.
Responsive Views ActivityA picture of a layout that adapts between small and large screens.
Game Activity (C++)A game-controller picture: a native C++ game starter.
Native C++A C++ logo: an app with native code.
Kotlin Multiplatform (Install Plugin)The label says a plugin must be installed first.

The point to take from this list is the naming. The XML-based templates now say "Views" in their names, so choosing XML is an explicit decision rather than the default. Everything built later in this course series assumes Empty Activity.

Screen 2: Name It and Set the Basics

The second screen is headed with the template you chose and a one-line description, then four fields:

FieldWhat it is
NameThe app's name, shown under its icon. Also used for the project folder.
Package nameThe app's unique identifier, written like a reversed web address (for example com.example.scratch). It is the ID the Play Store and the phone use for your app, so it is hard to change after you publish.
Save locationThe folder for the project, with a folder-picker button.
Minimum SDKThe oldest Android version the app will run on. The install checked showed API 24 ("Nougat"; Android 7.0) and, under the field, Your app will run on approximately 99.5% of devices.

Below the fields is a Help me choose link: per Google's docs it opens a dialog with the cumulative distribution of Android versions, so you can see how many devices each minimum level reaches. The trade-off is simple: a lower minimum reaches more devices but gives you fewer modern APIs, a higher one the opposite. Leave the default unless you have a reason.

The whitespace warning
Both details pages showed a warning: Save location should not contain whitespace, as this can cause problems with the NDK tools. The NDK is the toolkit for native C++ code. A Kotlin and Compose app does not use it, so a space in the folder name (for example Projects 2026) is probably harmless today, but a path with no spaces costs nothing and keeps you safe if the project ever adds C++. I could not test whether a space causes any problem in a Compose-only project.

What is missing from the page

Two choices that older Android Studio versions asked about do not appear on the Compose page. There is no Language field (a Compose app is Kotlin) and there is no build configuration choice between Kotlin and Groovy for the Gradle files. The generated project uses Kotlin and the Kotlin DSL (Chapter 4). The Views template's details page, however, does have a Language drop-down (it showed Kotlin); neither template page had a build-language choice. That the older wizard asked for both is from general knowledge and was not rechecked.

Press Finish. Android Studio creates the files, then runs a Gradle sync and indexes the project. Progress shows in the Build tool window at the bottom (its Sync tab) and the first sync can take a while because it downloads what the project needs. Chapter 4 explains what sync is doing.

The Project Tool Window and Its Views

The Project tool window (Alt+1, the folder icon at the top of the left bar) shows your files, but not always in the same way. At the top-left of the panel is a drop-down that names the current view, and there are ten to choose from. The install checked offered:

ViewWhat it shows
AndroidThe default for an Android project: a tidied view grouping the manifest, source code, resources and build scripts (below).
ProjectThe real folder structure on disk, including the build output folder and hidden configuration. Use it to see exactly where a file lives.
PackagesSource files grouped by package only.
Project FilesFiles that belong to the project, grouped by location.
ProductionOnly the code that goes into the shipped app.
TestsOnly test code.
Project Source FilesOnly source files, without other project files.
Project Non-Source FilesEverything that is not source code.
Open FilesThe files you currently have open in the editor.
Scratches and ConsolesScratch files and consoles that are not part of the project.

Only the names of the views were visible in the screenshots; the one-line descriptions are my reading of those names and of how the IntelliJ platform works, not something I checked on the install. For daily work you will use only two: Android for writing code and Project for looking at the truth on disk.

The Android view

In the Android view the top level of a project looks like this (names as seen on the install checked):

// Project tool window, Android view app ├── manifests ├── kotlin+java │ ├── com.example.scratch │ ├── com.example.scratch (androidTest) │ └── com.example.scratch (test) ├── res └── keepRules Gradle Scripts

The three entries under kotlin+java are not three projects. They are three source sets with the same package name: the app's code, the androidTest code that runs on a device or emulator, and the test code that runs on your computer. The Android view labels the test ones in brackets and greys them. Gradle Scripts collects the build files, Chapter 4's subject.

Where did res/layout go?
A project from the Compose template has no res/layout folder: the screen is written in Kotlin, not XML. The res folder of the generated project held only drawable, mipmap-* (the launcher icons), values and xml. A Views project starts with layout files, which is the second big difference between the two template families. If you open an old tutorial and it tells you to edit a layout XML file, it was written for a Views project.

The Resource Manager

The second icon on the left bar is the Resource Manager, a tool window for the app's images, colours and strings as a gallery instead of a folder tree. It has a Module drop-down at the top (for example Module: Catalogue), a search box with a filter button, and plus and refresh buttons. A row of tabs filters by kind: Drawable, Color, Layout, Mip Map, String. Under them, resources are grouped by module and source set (for example Catalogue.app.main (2), the two resources it holds) and shown as thumbnails with their name and the number of versions (alternates for different screen densities or modes). A new project's Drawable tab showed ic_launcher_background and ic_launcher_foreground, the two halves of the launcher icon. Buttons at the bottom switch between a list and a grid and zoom the thumbnails.

The Resource Manager is the quickest way to see what resources you have and to import a new image (the plus button), and it is the New UI's tidier replacement for hunting through res by hand. In a Compose app you will use it far less than in a Views app, because much of the visual design is code.

Compared with the Classic UI
Android Studio: The IDE Itself 3 teaches the Layout Editor and XML layouts as the main design path, and the older New Project wizard asked you for a Language and a build language. In the New UI path used here the wizard is two screens, the default template is Compose and there is no layout folder to edit. Chapter 5 of this course covers Compose Preview, which replaces the Layout Editor for Compose code.

Try It Yourself

Exercise 1

Create a scratch project: choose Empty Activity, name it Scratch, use the package com.example.scratch, a Save location with no spaces and the default Minimum SDK. Before you click Finish, press Help me choose and write down what it shows. Afterwards, note the Name, Package name and Minimum SDK you used and what the Android view shows at its top level.

📄 View solution
Exercise 2

In the scratch project, switch the Project tool window through the Android, Project, Packages and Project Files views. For each, find MainActivity.kt and the manifest and write down the path of folders you had to open. Then say which of the two views (Android or Project) shows the build folder.

📄 View solution
Exercise 3

Open the Resource Manager, list the five tabs and the two resources on the Drawable tab, then find the same files in the Project view under app/src/main/res. Confirm there is no res/layout folder. Optionally, create a second scratch project from Empty Views Activity and compare: does it have a Language field, and does it have a res/layout folder?

📄 View solution
Not Yet Verified
Checked on the install (screenshots of Android Studio Rabbit 2, 2026-11-20 and 2026-11-21, and the generated project's folders): the wizard's two screens and buttons; the category list; all ten templates and the two details pages (Empty Activity, Empty Views Activity), including the Name, Package name, Save location, Minimum SDK and Language fields, the 99.5% line and the whitespace warning; the ten Project view names; the top level of the Android view; the Resource Manager's controls, tabs and contents; the folders under res.
Checked in the docs (one web search): Google's English Create a project page says Empty Activity is the recommended starting point for new Compose projects, that Help me choose opens a dialog showing the cumulative distribution for the selected API level, and that a lower minimum API level means fewer modern APIs but more devices. It also describes Kotlin as the recommended language. I read search summaries, not the whole page, and did not check whether the default minimum API level in other releases differs from 24: older and third-party tutorials show different examples.
Not verified: what each Project view other than Android actually lists (the descriptions are my reading of the names); what the other templates generate; whether Navigation UI Activity is Compose; the exact contents of the Gemini API template; what Create with AI... does; the Wear OS, Television, Car and XR template lists; whether a space in the save location causes any problem for a Compose-only project; and the exercises (not run by me). The statement that older wizards asked for a language and a build language is from general knowledge. Defaults change between releases, so trust your own wizard where it differs.
Source: Create a project (developer.android.com).
Coming up
Chapter 4 opens the Gradle Scripts group: Kotlin DSL build files, the version catalog, the Compose BOM, the Android Gradle Plugin and Gradle versions, the Project Structure dialog and what sync actually does.