0
点赞
收藏
分享

微信扫一扫

?attr/actionBarSize 找不到的解决方法

流计算Alink 2022-05-17 阅读 141

1. 确保引入appcompat和design库,比如:

compile 'com.android.support:appcompat-v7:23.0.0'
  compile 'com.android.support:design:23.0.0'

2. 在app的build.gradle下添加l如下代码,禁止Lint-check,如下:  

android {
    lintOptions {
       disable 'PrivateResource'
    }
  }

3. 如果还不行,尝试把?attr/actionBarSize 改为 ?android:attr/actionBarSize 试试。

compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'




举报

相关推荐

0 条评论