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
import androidx.gridlayout.widget.GridLayout
Do this in you MainActiviy sheet.
You should edit the import.android.widget.GridLayout
import.android.widget.GridLayout
as