Pergunta

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

Foi útil?

Solução

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
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top