Reputation: 159
How to add library of ActionBarSherlock to project? I tried to add library in Android->Library but can't add.
Upvotes: 3
Views: 11748
Reputation:
Befor adding ActionBarSherlock library to your project you must Right Click ABS library chose Android Tools -> Add Support Library (do the same thing to your project)
Upvotes: 0
Reputation:
By following all these steps it works for me.
Upvotes: 0
Reputation: 1
I've solced same issue(red cross icon instead of green tick) folowed advice in this thread: "... The library project must be on the same partition as your project."
Cheers.
Upvotes: 0
Reputation: 56
Had same situation as Dhiren (red cross). Have moved source folder of Sherlock library to my Eclipse workspace folder, imported it again and problem was resolved.
Upvotes: 3
Reputation: 632
Go the the Sherlock library project in eclipse, and open the project.properties file...Check if android.library=true...if it is false, check it to true :)
Upvotes: 0
Reputation: 4431
Both answers above are close to the solution but not close enough. Here's is how i solved this issue.
1. Install android sdk version 14
2. Import the ActionBarSherlock project you downloaded to Eclipse
3. VERY IMPORTANT do this before step 4 In your project look for android-support-v4.jar If you find it then delete it.
4. Right click on the project you want to use the custom action bar /Properties/Library/Add and add the library project.
If you get an error after step 4 like Jar mismatch! Fix your dependencies
then repeat step 3.
Hope this helps others and have a nice day.
Upvotes: 6
Reputation: 10622
1) Import the Sherlock Library as a project in eclipse IDE.
2) In your target project, Make Right Click on Project Node
,
SelectProperties-->Android
Scroll Down to Library Section Then Select-->Add Button --> A wizard opens select the Sherlock library project and press Ok button Again press Ok button in properties window
.
Upvotes: 1