我的Android项目构建失败,从不执行项目?

时间:2015-11-15 16:59:16

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

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

  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'C:\ Users \ DELL \ Documents \ adt-bundle-windows-x86-20140702 \ sdk \ build-tools \ 23.0.2 \ aapt.exe''以非零退出值1完成

首先你看到屏幕截图 People Table - TableView Example

现在你看到了我的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工作室,但错误没有发生。这是我完整的整个项目。

1 个答案:

答案 0 :(得分:1)

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