有一个我无法理解的令人困惑的问题......
当我将actionbarsherlock作为库添加到任何项目中时,我收到了错误...
喜欢:
F:\Android_En\Projects of Android\Task 12_Optices\opticseis_main\build\intermediates\res\merged\debug\values\values.xml Error:(510) Attribute "background" already defined with incompatible format. Error:(90) Original attribute defined here. Error:(851) Attribute "navigationMode" already defined with incompatible format. Error:(497) Original attribute defined here. Error:(858) Attribute "displayOptions" already defined with incompatible format. Error:(503) Original attribute defined here. Error:(871) Attribute "itemBackground" already defined with incompatible format. Error:(808) Original attribute defined here. Error:(874) Attribute "actionBarSize" already defined with incompatible format. Error:(555) Original attribute defined here. Error:(876) Attribute "windowMinWidthMajor" already defined with incompatible format. Error:(554) Original attribute defined here. Error:(876) Attribute "windowMinWidthMinor" already defined with incompatible format. Error:(554) Original attribute defined here. Information:14 errors
注意:
问题的解决方案:从属性库中删除actionbarsherlock库
当我没有将actionbarsherlock作为库添加到任何项目中时,错误将变为......
像:
Error:_/_/ (_)___/_/ \_, / F:\Android_En\Projects of Android\Task 12_Optices\opticseis_main\build\intermediates\res\merged\debug\values-v14\values-v14.xml Error:(3) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionBar.Solid'. Error:(9) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionBar'. Error:(54) Error retrieving parent for item: No resource found that matches the given name '@style/Theme.Sherlock.Light'. Error:(67) Error retrieving parent for item: No resource found that matches the given name '@style/Theme.Sherlock'. F:\Android_En\Projects of Android\Task 12_Optices\opticseis_main\build\intermediates\res\merged\debug\values\values.xml Error:(3949) Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light'. Error:(3956) Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light'. Error:(3963) Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light'. Error:(1894) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionBar.Solid'. Error:(1900) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionBar'. Error:(3629) Error retrieving parent for item: No resource found that matches the given name '@style/Theme.Sherlock.Light'. Error:(3642) Error retrieving parent for item: No resource found that matches the given name '@style/Theme.Sherlock'. Error:(1904) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionBar.TabView'. Error:(1907) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ActionButton.CloseMode'. Error:(3021) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ListView.DropDown'. Error:(3024) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.Spinner.DropDown.ActionBar'. Error:(3151) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ListPopupWindow'. Error:(3286) Error retrieving parent for item: No resource found that matches the given name '@style/Widget.Sherlock.Light.ProgressBar.Horizontal'. Error:(3975) Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'. Information:19 errors
注意:
解决问题:将库作为actionbarsherlock添加到项目属性中。