-
Notifications
You must be signed in to change notification settings - Fork 29
duplicate value for resource 'attr/strokeWidth' with config #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
1 similar comment
+1 |
@yehyatt How did you fix the duplicate strokeWidth issue? |
@aliasgarlabs I removed the library and its uses in my app |
@yehyatt I had to do the same thing |
Hi, I have the same problem. I've tried a lot of strategies. @yehyatt Could you detail a little bit more your answer - "I removed the library and its uses in my app" - for @aliasgarlabs ? |
+1 anyone found a way to solve this ? |
I've tried to use androidx packages, last version of build tools and nothing changes the result, always the same problem |
Created a temporary solution:
I have just renamed attribute strokeWidth to customStrokeWidth and updated it in all places where it is used |
Thanks by your answer. I've removed the remote lib and add the .aar as a local dependency (implementation files('libs/color-picker.aar')) The build was done with success, but the "setOnColorChangedListener()" method from LineColorPicker was not found. Could you help me about this issue? Thank you so much, Luciano Borges |
Hi @lucianoborgesumovme!
or check this thread how to include aar manually: |
Hi @Oleksandr1990 |
@lucianoborgesumovme |
@Oleksandr1990 |
Many thanks to @Oleksandr1990 for the tip. That was the last blocker for a 4 am side project release, phew! edit - see my fork and it's readme if you want an easier workaround To give this workaround a bit more posterity than a zip file, if you want to recreate yourself: Clone the color picker repo. Bump version from 0.0.5 to 0.0.6 (or whatever version you like). Replace all occurrences of strokeWidth to customStrokeWidth like @Oleksandr1990 said. There's a constant to rename too, may be needed, not sure. Then run these commands in the color picker repo to install it into your local m2 repo:
Then in the project where you consume it, add mavenLocal() as a repository in both places. See https://stackoverflow.com/a/39015691. Consume the new 0.0.6 version you made. Poke me and ask me to publish my fork if I don't followup! But definitely +1 to migrating to another color picker library. It probably would have been about the same amount of work as supporting this one. |
Here's my fork where I made this tweak: https://github.com/locofocos/ColorPicker The readme has some instructions on consuming it. Someone please feel free to publish this on maven central! TBH I'll probably switch to another color picker library that's still supported. Probably a better use of time than getting a fork published. @xdtianyu if you're interested in maintaining this, I can tidy up my fork and submit a PR. Just let me know if you're still hanging around. |
When Updating to latest gradle and android studio
buildToolsVersion '28.0.3'
compileSdkVersion 28
targetSdkVersion 28
classpath 'com.android.tools.build:gradle:3.2.0'
The text was updated successfully, but these errors were encountered: