gpt4 book ai didi

java - processDebugManifest 错误 - Android Studio

转载 作者:行者123 更新时间:2023-12-02 06:16:36 27 4
gpt4 key购买 nike

我是 Android Studio 的新手,当 gradle 构建时,我收到此错误:

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']
}
}
}

在我的 Androidmanifest.xml 中,我有

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

有人可以帮忙吗?

最佳答案

我也遇到过同样的问题。就我而言,它与构建和向依赖项添加新条目有关(可能是缓存问题?)。因此,请尝试删除每一行依赖项,然后逐步添加它们,以便您隔离哪一个是导致问题的原因,如果是缓存问题之类的问题,它将解决您的问题。希望这有帮助!

关于java - processDebugManifest 错误 - Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21392458/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com