Error:Error: Found item Attr/border_width more than one time
这个容易,属性相同了,按照提示查询一下找出来删了就行了,注意大小写很容易忽略
Error:Execution failed for task ':app:processDebugResources'.
> com.
android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
这个错误是你在style中定义了属性
<style name="name">
<item name="actionSheetBackground">@mipmap/bg</item>
</style>
而忽略了在atts中声明类型
<declare-styleable name="ActionSheet">
<attr name="actionSheetBackground" format="color|reference" />
</declare-styleable>
至于引用则
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout. setTheme(R.style.name);
}
原标题:android常犯错误记录
关键词:Android