Android - Gridlayout android.support.v7.widget.GridLayout cannot be cast to android.widget.GridLayout

后端 未结 7 1656
说谎
说谎 2020-12-01 20:15

I want to create a GridLayout able to run in all the APIs.

The thing is, when i use GridLayout instead of android.support.v7.widget.GridLayo

7条回答
  •  北海茫月
    2020-12-01 21:00

    I got the same issue. I solved it by using the GridLayout from package android.support.v7.widget.GridLayout, since I was previously using the android.widget.GridLayout package which gave me the error.

提交回复
热议问题