a-student / BetterVectorDrawable

The VectorDrawable implementation for Android 4.0+
151 stars 22 forks source link

Gradle build issue #5

Closed VadimWelldone closed 8 years ago

VadimWelldone commented 8 years ago

Hi @a-student .

Firstly, thanks for your cool library :+1:

During its integration to my project I have experienced following issue:

:processDebugResources Android/res/values/colors.xml Error:(2) Attribute "strokeWidth" has already been defined Error:(2) Attribute "strokeColor" has already been defined Error:(2) Attribute "fillColor" has already been defined Error:Execution failed for task ':processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/vadim/Library/Android/sdk/build-tools/23.0.0/aapt'' finished with non-zero exit value 1

Project settings:

compileSdkVersion 23 buildToolsVersion '23.0.0' targetSdkVersion 23

compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:support-v4:23.0.1'

I hope you can shed light on this issues and what should I do.

Thanks in advance.

VadimWelldone commented 8 years ago

Also, I have noticed that, probably, this string causes issue:

compile 'com.viewpagerindicator:library:2.4.1'

When I comments that dependency, everything works like a charm.

a-student commented 8 years ago

Hi Vadim, This happens because those attributes are defined simultaneously in both libraries. Just attach the ViewPagerIndicator library as source code (not as gradle dependency) and rename duplicate attributes.

VadimWelldone commented 8 years ago

Thanks @a-student . I will try!