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

前端 未结 3 1763
梦谈多话
梦谈多话 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:05

    To use the AppCompat Theme you have to include this library in your project.

     compile 'com.android.support:appcompat-v7:22.2.0'
    

    Also I suggest you using the latest version 22.2.0 instead of 22.0.0

    dependencies { 
         compile fileTree(dir: 'libs', include: ['*.jar'])
         compile 'com.android.support:appcompat-v7:22.2.0'
    
         //You can remove this line, because the appcompat has the support-v4 as dependency
         //com.android.support:support-v4:22.0.0'
        } 
    

提交回复
热议问题