码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-12-10 12:48:28      阅读:954      评论:0      收藏:0      [点我收藏+]

标签:

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文件无法生成

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

标签:

原文地址:http://www.cnblogs.com/andy2simple/p/5035507.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!