Theme.AppCompat.Light.NoActionBar not found on Android Studio

前端 未结 3 1756
梦谈多话
梦谈多话 2021-01-21 20:40

Sorry maybe this is not new topic, but really need help, i was try many post about this, but my problem still not fix, i am newbie about android. I try to learn Material Design,

3条回答
  •  不思量自难忘°
    2021-01-21 21:31

    Theme Theme.AppCompat.* is used to define compatibility with old android 2.x versions. this requires the support-v7

    If you need compatibility with android 2.2 or 2.3 include this in your gradle build

     compile 'com.android.support:support-v7:22.0.0'
    

    or if you build is for android-3.0 or later replace AppCompat with Holo.

    Example

    • Theme.AppCompat.Light.NoActionBar

    becomes

    • Theme.Holo.Light.NoActionBar

提交回复
热议问题