Android Studio 编译报错:Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1

AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027text_titleText\u0027 in package \u0027 包名 \u0027","sources":[{"file":"D:\\workSpace\\Android Studio\\Bank\\res\\layout\\ui_testpersoninfo.xml","position":{"startLine":21}}],"original":""}

 

 

 FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':processRenmaiDebugResources'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1

 

AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027text_titleText\u0027 in package \u0027 包名 \u0027","sources":[{"file":"D:\\workSpace\\Android Studio\\Bank\\res\\layout\\ui_testpersoninfo.xml","position":{"startLine":21}}],"original":""}

这句话指出在 ui_testpersoninfo布局文件第21行 找不到资源id

一般导致该问题的原因:

1.可能命名不规范导致资源R文件无法自动生成。

2.可能使用到自定义控件自定义属性的时候申明的时候有问题

 

 

Gradle工具会自动识别,所以不用指定包名

3.其它问题导致资源R文件无法生成

posted @ 2015-12-10 11:54  欠儿不登  阅读(21942)  评论(0编辑  收藏  举报