java.lang.IllegalArgumentException: AppCompat does not support the current theme features

后端 未结 15 1068
你的背包
你的背包 2020-12-04 11:32

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

相关标签:
15条回答
  • 2020-12-04 12:34

    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.

    0 讨论(0)
  • 2020-12-04 12:34

    add dependency to gradle like this

    compile 'com.android.support:appcompat-v7:21.0.3'
    
    0 讨论(0)
  • 2020-12-04 12:34

    In Java class change Main extends ActionBarActivity to Main extends Activity. It worked for me.

    0 讨论(0)
提交回复
热议问题