【发布时间】:2016-08-05 09:37:51
【问题描述】:
是否有人熟悉以下问题。
/Users/macpurple8/Desktop/Minto_Purple/Clients/Sanghi/Sanghi 03 03 7pm/app/src/main/res/values/colors.xml
Error:(2) Attribute "spinnerStyle" has already been defined
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/macpurple8/Desktop/adt-bundle-mac-x86_64-20140702/sdk/build-tools/23.0.1/aapt'' finished with non-zero exit value 1
我的项目运行良好。当我添加一个新片段时出现了问题。任何想法,可能是什么问题??
更新
附上代码...
这些是使用的库..
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(':purpleb2b')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.thomashaertel:multispinner:0.1.1'
compile 'com.itextpdf.tool:xmlworker:5.5.8'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
}
'purpletb2b' 是一个自定义库。其依赖如下
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'de.greenrobot:greendao:2.0.0'
compile 'com.google.code.gson:gson:2.4'
compile 'me.neavo:volley:2014.12.09'
compile 'org.apache.httpcomponents:httpmime:4.3.1'
compile 'org.apache.httpcomponents:httpcore:4.3.1'
compile 'itext:itext:1.3.1'
compile 'org.json:json:20151123'
compile 'com.opencsv:opencsv:3.6'
compile 'org.apache.httpcomponents:httpclient:4.5'
}
在我的 style.xml 中,我也没有使用“spinnerStyle”。我不确定列出的任何库是否正在使用它。请提出解决方案。
【问题讨论】:
-
检查您的 xml 文件,可能您已经使用了两次样式标签,或者在您的 styles.xml 中您已经编写了两次样式也发布了您的代码
-
也发布你的colors.xml
-
@RAVI GADIPUDI - 没有任何名为 spinnerStyle 的颜色。当我单击错误中的那一行时,它会显示颜色页面。但没有指向任何地方!
标签: android