1

I am trying to use columnCount attribute in android.support.v7.widget.GridLayout but getting error that

Error:(2) No resource identifier found for attribute 'useDefaultMargins' in package

I have used xmlns:app="http://schemas.android.com/apk/res-auto

Amit Vaghela
  • 22,162
  • 20
  • 85
  • 137
Manish
  • 933
  • 1
  • 9
  • 27

1 Answers1

6

Try changing :

xmlns:app="http://schemas.android.com/apk/res-auto" 

to

xmlns:app="http://schemas.android.com/apk/lib/com.package.class"

Update your library to

compile 'com.android.support:gridlayout-v7:23.2.0'

check this answer.

Community
  • 1
  • 1
Amit Vaghela
  • 22,162
  • 20
  • 85
  • 137