I’ve been trying to learn how to use the ActionbarSherlock to customize my application and add an actionbar and use fragments.
I downloaded the zip file from their website and added the library folder as a new android project.
then, I made sure that it’s has the isLibrary checked to true.
after that, I created a new android project from existing and added the JakeWharton-ActionBarSherlock-88fc341/samples/fragments but suddenly I saw all these error appear.
I made sure that it imported the actionbarSherlock project, and after that I deleted the Gen library both manually (delete) and via the project>clean>clean all option, but nothing generated the R file.
the only thing being generated is a BuildConfig file but I can’t force the R file generation.
any thoughts?
BuildConfig.Java:
package com.actionbarsherlock.sample.fragments;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
OK.
So, after talking to Jake Wharton on the IRC channel (#android-dev), he posted the comment here, and I checked to see if the build target was correct. unfortunately since the
minSdkwas 7, the build target was not 15 is specified in the manifest but 2.1 :Sanyway, the solution was to change the target build to the correct one (15 for actionbarSherlock) and clean and build again…
thanks a bunch Jake.