I tried to migrate a project from Eclipse to Android studio. Finally I am able to run it, but at a certain point I got this exception, and I found nothing in google about th
Remove
<item name="windowActionBar">false</item>
from your theme, then make sure you are inheriting from a .NoActionBar Theme, then set your toolbar like normal.
add dependency to gradle like this
compile 'com.android.support:appcompat-v7:21.0.3'
In Java class change Main extends ActionBarActivity
to Main extends Activity
. It worked for me.