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

来源:互联网 发布:吉他收费软件 编辑:程序博客网 时间:2024/06/06 05:47

转载请标明出处: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 21buildToolsVersion "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 21buildToolsVersion "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

0 0
原创粉丝点击