I am using ActionBarSherlock to implement action bar for Android 2.1 platform.
But in Eclipse, no matter I import existing project from download ActionBarSherlock library or create new project from the download library, I always get error of “R can not be resolved“. Then I notice that there is no R.java file under gen/ folder. I tried to clean the project, but it does not help… Anyone can help me on how to get rid of this ActionBarSherlock library?
ActionBarSherlock (v3.x) requires that you compile with Android 3.2. The reason you are not seeing an
R.javafile is that you are likely using a previous version for compilation which means some of the styles that are used on Android 3.0+ cannot be found.Make sure you are building with Android 3.2, target API 11+ in your manifest, and are using JDK 1.6. Those are the common pitfalls with compilation of the library.