Upgrading to SDK 21 - Error inflating class android.support.v7.internal.widget.ActionBarContainer

前端 未结 4 1536
清歌不尽
清歌不尽 2020-12-09 10:28

I\'m trying to upgrade my app from API19 to API21

The main changes I\'ve made to the gradle properties are:

compileSdkVersion 21
buildToolsVersion \"         


        
4条回答
  •  没有蜡笔的小新
    2020-12-09 10:41

    I had similar issue, i'm using AppCompat.v21 and supporting Android 5.0.

    My layout uses the ?attr/[attribute_name] for some values and I use the activity context.

    I changed it to ?android:attr/[attribute_name] and now my views inflate just fine on devices running Android 5.0.

提交回复
热议问题