I am using ActionBarSherlock to implement action bar on my Android 2.1 API 7 project. (With Eclipse IDE)
In order to use sherlock, after I imported sherlock library as a existing project on Eclipse. I did the following things on my own project:
-
mouse right click on my project, choose “properties”
-
in “Android” section, there is “Library” sub-section, I added sherlock project as library
-
Apply change
Then, I notice the FragmentActivity can not be resolved in my project source code.
I checked the project property again, the added sherlock project as library is not in “Library” section…weired!!! Why it suddenly disappeared even I have added sherlock as library? What am I missing?
I mean no matter how many times I added sherlock as library to my own project, the next time I check project property, the sherlock just disappear from library section…
First, after adding the project as a library, restart Eclipse – I believe this is a known bug with at least some versions of the plugin.
If that doesn’t work, check that the ‘default.properties’ file in your project root is not read only.