【问题标题】:My Android project Build Failed and never execute the project?我的 Android 项目构建失败并且从不执​​行项目?
【发布时间】:2016-02-16 18:41:52
【问题描述】:

我的问题是,我试图更改我的android项目的包名,当我构建我的项目时它给了我错误,然后我按下了 ctrl+z 按钮之前重写我的包名称并尝试再次构建它不是构建我的项目。 我的错误是 错误:任务 ':app:processDebugResources' 执行失败。

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\DELL\Documents\adt-bundle-windows-x86-20140702\sdk\ build-tools\23.0.2\aapt.exe'' 以非零退出值 1 结束

首先您会看到屏幕截图

现在你看到了我的 build.gradle 文件

apply plugin: 'com.android.application'
    android {
        compileSdkVersion 23
        buildToolsVersion '23.0.2'

defaultConfig {
    applicationId "app.tabsample"
    minSdkVersion 15
    targetSdkVersion 23
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}

dependencies {
compile 'com.android.support:support-v4:23.1.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.android.gms:play-services-ads:8.3.0'
}

我有一个最新的构建版本

 classpath 'com.android.tools.build:gradle:1.3.0' 

我还尝试清理和重建项目,还尝试重新启动 Android 工作室,但错误没有消失。这是我完整的整个项目。

【问题讨论】:

    标签: android performance android-activity android-studio android-studio-import


    【解决方案1】:

    如第一个错误中所述,您在类别标记中有一个无效字符的空格,它应该是<category android:name=android.intent.category.default/>

    【讨论】:

    • 谢谢你的回答。我发现了这个错误,并在我发布这个问题的同一天解决了它。你的回答完全正确。
    猜你喜欢
    • 1970-01-01
    • 2019-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-25
    • 2022-08-10
    相关资源
    最近更新 更多