Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> Android開發 >> 關於android開發 >> Android Studio 編譯報錯:Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1,nonzeroexitcode

Android Studio 編譯報錯:Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1,nonzeroexitcode

編輯:關於android開發

Android Studio 編譯報錯:Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1,nonzeroexitcode


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

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved