processDebugManifest错误 - Android电子工作室 [英] processDebugManifest error - Android Studio

查看:289
本文介绍了processDebugManifest错误 - Android电子工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的 Android的工作室,当建筑物的gradle我得到这个错误:

I am new to Android Studio and when gradle building I get this error :

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':processDebugManifest'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

这是我的的build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }
}

apply plugin: 'android'

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile 'com.github.chrisbanes.actionbarpulltorefresh:library:+'
    compile 'com.android.support:support-v4:13.0.+'
}

android {
    compileSdkVersion 18
    buildToolsVersion '18.0.1'

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 18
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            res.srcDirs = ['res']
        }
    }
}

在我的的Andr​​oidManifest.xml ,我有

<uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="18" />

有人能帮忙吗?

推荐答案

我不得不遇到同样的问题。就我而言,它必须是与建设,并添加新条目的依赖关系(也许一个缓存的问题?)。因此,尝试删除该依赖的每一行,并添加它们逐步,让你确定是哪一个是你的问题的原因,如果它是像一个缓存的问题,它会解决你的问题。希望这有助于!

I had to experience the same problem. For my part, it had something to do with building and adding new entries to the dependencies (maybe a cache issue ?). So try to delete each line of the dependencies, and add them progressively, so that you isolate which one is the cause of your problem and, if it is something like a cache issue, it will solve your problem. Hope this help !

这篇关于processDebugManifest错误 - Android电子工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆