当前位置: 代码迷 >> Android >> Android Studio编译的错误 finished with non-zero exit value 1
  详细解决方案

Android Studio编译的错误 finished with non-zero exit value 1

热度:56   发布时间:2016-04-27 22:16:17.0
Android Studio编译的异常 finished with non-zero exit value 1
Error:Execution failed for task ':app:processDebugResources'. > com.android.Error:Execution failed for task ':app:processDebugResources'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\android-sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1


是因为新加的自定义控件的属性文件,没有加format值导致。
引用
    <declare-styleable name="xx">
        <attr name="borderRadius" format="integer"/>
        <attr name="type" format="integer"/>
    </declare-styleable>


  相关解决方案