更新Android Studio后,会出现以下编译错误:
C:\android-studio-workspace\Biomech\app\src\main\res\values\colors.xml Error:(2) Attribute "progress" has already been defined Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Marcos\AppData\Local\Android\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1
Color.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="gray">#ECEFF1</color>
<color name="red">#FF0000</color>
<color name="darkGray">#212121</color>
<color name="grey">#BDBDBD</color>
<color name="lightGray">#DDD</color>
<color name="blueLogo">#5bc0de</color>
<color name="black">#000</color>
<color name="white">#fff</color>
<color name="colorPrimary">#2196F3</color>
<color name="colorPrimaryDark">#1976D2</color>
<color name="colorPrimarytext">#616161</color>
<color name="colorAccent">#1976D2</color>
<color name="colorControlNormal">#000</color>
<color name="colorFABPressed">#0D47A1</color>
<color name="colorSecondText">#999</color>
<color name="buttonGreen">#4CAF50</color>
</resources>
答案 0 :(得分:0)
您可能使用使用名称为“progress”的自定义属性的类或库。 解决方法包括重命名此属性。