Android Studio Module Not Specified? Fix the Run Target

Android Studio's Module not specified error means the run configuration has no module to launch. Check Run > Edit Configurations > Module. For an empty list, finish Gradle sync and confirm the project includes the app module.

A missing module isn't an emulator connection failure. Selecting another phone won't fill an empty Module list. Fix the project and run target first, then choose the device once Studio has an app it can build.

1. Select an application module in the run configuration

Open Run > Edit Configurations and select the configuration that failed to launch. For a normal Android app launch, check that it uses the Android App configuration type. Read the Module field in that configuration.

Select the application module when the list offers it. It's often called app, but use the name from your project. Select Apply or OK, then try running that configuration again.

Drawing of Android Studio Run Debug Configurations with the Module field and Apply button highlighted

This setting tells Studio what to build and launch. The device selector tells it where to run the app. If a build starts without the Module error, you've fixed the run target. If a different build error appears, work on that error next.

If the selected configuration is wrong, create one with Add New Configuration > Android App, give it a recognizable name, and select its module. Keep the old configuration until the new one works so custom launch options remain available.

If the list is empty, check whether Studio has finished importing the project. Don't type a guessed module name into other configuration fields; Studio needs to recognize the module before the run configuration can use it.

For a different failure during Windows installation, Unable to elevate needs administrator approval before Studio can reach project setup.

2. Complete Gradle sync and read its first error

Use Sync Project with Gradle Files from the File menu when that command is available. Recent documentation also calls the action Sync Project. After a build-file edit, the notification bar offers Sync Now.

Wait for synchronization to finish, then reopen the Module list. Sync reads the project's build settings into Studio. A folder visible in the file tree isn't enough if that import failed before Studio recognized the module.

Open the Build tool window and check its Sync tab or reported sync error. Fix the first error, such as a missing SDK platform, a package that won't download, or incompatible tools, before changing the run target.

I'd read that error before clearing caches. Installing the missing SDK package addresses that error directly. Clearing caches can mean waiting through another import without fixing the missing package.

For a Windows sync failure that specifically reports insufficient disk space, use the Windows storage cleanup controls, then retry the same sync. Don't delete project folders as a substitute for that cleanup.

If sync completes successfully but the application module is still missing, check the project root and settings file next. If it fails, save the full error and fix the SDK or build-tool problem it names.

3. Open the project root and check included modules

Find the project's settings.gradle.kts or settings.gradle file. It normally sits at the Gradle project root and tells Gradle which modules belong to the build. Opening a nested folder can leave Studio looking at the wrong project.

If you opened a subfolder, close it and open the Gradle project root containing the intended settings file. Let import finish, then sync and recheck the module selector. A source-code package folder isn't the project root.

Commit or back up the project before editing. Look in the settings file for the application module's include entry. For a module named app, the Kotlin settings file can use include(":app"); the Groovy settings file can use include ':app'.

Those examples fit a module named app. Keep your module path and any custom folder mappings. Adding an app include to a differently structured project can cause another error instead of restoring the module.

The asker in the saved Stack Overflow discussion fixed their import by changing the settings name, syncing, restoring it, and syncing again. That worked for their project; it doesn't mean every project needs renaming.

Start by correcting a genuinely missing or incorrect include and syncing normally. Try importing again only after those settings are right. Removing every module or deleting the settings file can break a multi-module build.

4. Distinguish an application from a library module

Check the plugin block in the intended module's build.gradle.kts or build.gradle. Apps use com.android.application; libraries use com.android.library. Selecting a phone doesn't turn a library into an app.

Keep the library plugin for a real library. Run its sample application module if available, or use the intended test configuration. Switching plugins just to remove this message changes what the project builds.

If an app was accidentally changed to a library, restore its plugin and application configuration from version control, then sync. Leave unrelated package names and SDK settings as they were.

One owner confirmed that correcting the application plugin fixed their project. Other replies describe different causes, so that success doesn't make a plugin change the right repair for every empty Module list.

After sync, return to the run configuration and choose the recognized application module. A library that still isn't offered as an app target may be working as intended; launch the sample app or tests that use it.

5. Install the SDK package named by the build failure

Open Tools > SDK Manager when sync identifies a missing Android SDK package. Use SDK Platforms for the platform required by the project's compile SDK, and SDK Tools for tools the build asks for.

Install the requested packages, accept their licenses, and wait for downloads to finish. Sync again. Keep the project's compile and target SDK settings instead of changing them to match installed packages.

If SDK downloads run out of room, the Windows disk-space guide explains cleanup without removing project files. Finish the package installation before expecting sync to use it.

For an unresolved error, use Help > Submit a Bug Report and include the Studio version, Android Gradle Plugin version, sync failure, and whether Module is empty. Remove credentials and private repository details before sharing the report.

Send the maintainer the first sync error if the checked-in build files won't work. For a running app with a missing included view, use the Studio layout checks to check its XML layout code.

The Short Version

Choose an Android App configuration and its application module. If no module is available, finish Gradle sync, open the correct project root, and check included modules, plugin type, and the SDK package named by the error.

Checked November 27, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment