The module 'app' is an Android project without build variants

module math
module synonym
module in a sentence
module in programming
how to pronounce module
module in python
meaning of module in education
module meaning in tamil

I am getting below error while importing android project.

Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the build.gradle file and sync the project again.

Gradle file code.

apply plugin: ''

android {
compileSdkVersion 25
buildToolsVersion "25.0.3"

defaultConfig {
    applicationId ""
    minSdkVersion 9
    targetSdkVersion 25
    versionCode 4
    versionName "1.3"

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt')

aaptOptions {
    cruncherEnabled = false

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation ''
implementation ''
implementation ''
implementation ''
implementation ''
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
implementation 'com.jakewharton.timber:timber:3.1.0'
repositories {

I checked with working gradle file as well but getting same error in this project.

Above gradle file code seems to be perfect. Probably its nothing to do with app/build.gradle (Module:app). Just open other build.gradle (Project:Android) file in Project window and verify your Android Studio version it must be same as yours.

I replaced from:

dependencies {
    classpath ''
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files

to my Android Studio v3.0.1 in my case:

dependencies {
    classpath ''
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files

Press "Try Again" to Sync gradle file. This resolved my problem with a successful build.

Module, module meaning, definition, what is module: one of the separate units that a course : Learn more. Module definition is - a standard or unit of measurement. How to use module in a sentence.

Try use command line to run gradlew tasks to see why the build would fail.

In my case:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
 platforms;android-27 Android SDK Platform 27
 build-tools;27.0.3 Android SDK Build-Tools 27.0.3

So I just ran Go to Android\sdk\tools\bin sdkmanager --licenses to accept licenses and then the build passed in command line.

I think Android Studio is crying for the wrong issue. So you may check the real output in command line and find what is happening.

Module (mathematics), Such a file is called a module; definitions from a module can be imported into other modules or into the main module (the collection of variables that you have  one of a set of separate parts that can be joined together to form a larger object: The reactor was built in modules that were assembled later at the site. A module is also a part of a spacecraft that can operate independently from the main part. (Definition of module from the Cambridge Academic Content Dictionary © Cambridge University Press)

For me, this issue appeared when I updated Android Studio to version 3.3. Disabling experimental feature "Only sync the active variant" fixes it:

module, What is a Module? Consider a module to be the same as a code library. A file containing a set of functions you want to include in your application. A module is a software component or part of a program that contains one or more routines. One or more independently developed modules make up a program. An enterprise-level software application may contain several different modules, and each module serves unique and separate business operations.

Just install the Android SDK platform package through SDK Manager in Android Studio, relevant to your Compile SDK version. It will prompt you to install the package as well as to accept the license. After that just sync the gradle, it will resolve the issue.

6. Modules, What is a Module in Node.js? Consider modules to be the same as JavaScript libraries. A set of functions you want to include in your application. In mathematics, a module is one of the fundamental algebraic structures used in abstract algebra.

If this error occurs for other module than 'app'

Remove gradle variable from that module's build.gradle like

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

& replace it actual value

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.71"

Clean Project -> Rebuild Project

Python Modules, A module can define functions, classes and variables. A module can also include runnable code. Example. The Python code for a module named aname normally​  noun a separable component, frequently one that is interchangeable with others, for assembly into units of differing size, complexity, or function. any of the individual, self-contained segments of a spacecraft, designed to perform a particular task: the spacecraft's command module; a lunar module. a standard or unit for measuring.

Node.js Modules, For example, a C Shell user sources the /usr/share/Modules/init/csh script. The sh​, csh, tcsh, bash, ksh, zsh and fish shells are supported by modulecmd.tcl . In  A module is a file containing Python definitions and statements. The file name is the module name with the appended. Within a module, the module’s name (as a string) is available as the value of the global variable __name__.

Python - Modules, The module.exports property can be assigned a new value (such as a function or object). Below, bar.js makes use of the  The Find-Module cmdlet finds modules in a repository that match the specified criteria. Find-Module returns a PSRepositoryItemInfo object for each module it finds. The objects can be sent down the pipeline to cmdlets such as Install-Module. The first time Find-Module attempts to use a repository, you might be prompted to install updates.

module, Modules essentially create a one-directional linear flow of what students should do in a course. Each module can contain files, discussions, assignments, quizzes​,  A module is a package that contains members that can be used in PowerShell. Members include cmdlets, providers, scripts, functions, variables, and other tools and files. After a module is imported, you can use the module members in your session. For more information about modules, see about_Modules.

  • It's an old one, but a good'un, try File -> Invalidate Caches / Restart, failing that you could try clearing your gradle cache manually. If this is happening across multiple projects, that were working, this solution sounds most plausible.
  • Can you show the build.gradle for the application ? I would like to know which version of the gradle-plugin you are using classpath ''
  • classpath ''
  • After few months got this error again and found this one really work.
  • for those who are working on a mac and having this issue, simply sdkmanager --licenses solves it. You just need to accept all the licenses
  • Thank you! That also worked for me! This feature seems not to be mature right now.