etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

Build issue in gradle with 1.0.5 and google-play-services #182

Open rskumar opened 9 years ago

rskumar commented 9 years ago

With gradle dependecies as:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.google.android.gms:play-services:7.3.0'
    compile 'com.android.support:recyclerview-v7:21.0.+'
    compile 'com.facebook.fresco:fresco:0.4.0+'
    compile 'com.github.pedrovgs:nox:1.0'
    compile 'com.github.bumptech.glide:glide:3.6.0'
    compile 'com.etsy.android.grid:library:1.0.+'     // compile issue..
}

Project build fails with error:

E:\Projects\app_android\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\7.3.0\res\values\wallet_colors.xml
Error:(1) Attribute "item_margin" has already been defined
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Apps\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1

I guess, there is some confict in resouces with google-play-services. Build passes fine if I remove 'com.etsy.android.grid:library:1.0.+' dependencies.