Question

My app developed using API 19, but I include support library v4 and trying run it in emulator under API 8 (using eclipse). So my app crashes with error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo / java.lang.ClassNotFoundException of my ActivityMain.

I have also included in my project several libs such as jsoup and GA.

Any suggestions? Thanx

Was it helpful?

Solution

you should extend ActionBarActivity if you want to support the actionbar for < API 11

public class ActivityMain extends ActionBarActivity

Instead of:

public class ActivityMain extends FragmentActivity
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top