Yaroslav
Yaroslav

Reputation: 5

sherlockactionbar 4.4.0 error

Good day! I connect sherlockactionbar 4.4.0 in Eclipse. I do everything according to instructions, and get the error:

[2014-04-14 15:10:40 - Example] C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml: 32: error: Attribute "windowActionBar" has already been defined 
[2014-04-14 15:10:40 - Example] C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml: 33: error: Attribute "windowActionBarOverlay" has already been defined 
[2014-04-14 15:10:40 - Example] C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml: 34: error: Attribute "windowSplitActionBar" has already been defined 
[2014-04-14 15:10:40 - Example] C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml: 45: error: Attribute "actionBarTabStyle" has already been defined

... https://i.sstatic.net/hp4tu.jpg

Please help!

Upvotes: 0

Views: 884

Answers (2)

S.Thiongane
S.Thiongane

Reputation: 6905

First of all :

C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml: 32: error: Attribute "windowActionBar" has already been defined 

means that the resource has already been defined. The given path in the error message : C: \ workspace \ appcompat_v7 \ res \ values ​​\ attrs.xml shows that the redundancy is located there.

On another side, I don't understand why you want to use ABSherlock and AppCompact at the same time.

  • If you want to use the ActionBar pattern for old devices with a third-party library use ABSherlock
  • If you want to use the ActionBar pattern for old devices with the compatibility library use AppCompact

Upvotes: 1

tasomaniac
tasomaniac

Reputation: 10342

Just remove the appcompat_v7 library out of your own project.

Upvotes: 0

Related Questions