AndroidManifest.xml - specified for property 'manifest' does not exist

转载请标明出处:http://blog.csdn.net/xx326664162/article/details/50357714 文章出自:薛瑄的博客

你也可以查看我的其他同类文章,也会让你有一定的收货!

错误信息:

Error:A problem was found with the configuration of task ‘:checkDebugManifest’.
File ‘/Users/wasimsandhu/AndroidStudioProjects/Conjugation/src/main/AndroidManifest.xml’
specified for property ‘manifest’ does not exist.

原因:

在项目更目录下的 build.gradle文件:
(the build.gradle file in the root directory:)

apply plugin: 'com.android.application'

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:0.13.2'

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

allprojects {
repositories {
    jcenter()
}
}

android {
compileSdkVersion 21
buildToolsVersion "20.0.0"

defaultConfig {
    applicationId "com.wsandhu.conjugation"
    minSdkVersion 15
    targetSdkVersion 19
    versionCode 1
    versionName "0.5"
    }
}

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

解决方法:

Remove this chunk of code from your build.gradle in the root directory:

apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "20.0.0"

defaultConfig {
    applicationId "com.wsandhu.conjugation"
    minSdkVersion 15
    targetSdkVersion 19
    versionCode 1
    versionName "0.5"
    }
}

尝试把根目录的build.gradle文件,修改为如下
Try making your top gradle file like this:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.13.2'
    }

}

allprojects {
    repositories {
        jcenter()
    }
}

转载:http://stackoverflow.com/questions/26988235/androidmanifest-xml-specified-for-property-manifest-does-not-exist

关注我的公众号,轻松了解和学习更多技术
这里写图片描述

你可能感兴趣的:(Android,Studio编译构建错误)