2

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,772
  • 22
  • 86
  • 142
Manish
  • 983
  • 1
  • 9
  • 27

1 Answers1

7

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,772
  • 22
  • 86
  • 142