Skip to content
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

borderWidth这个属性和系统的属性有冲突 #2

Closed
sunfusheng opened this issue Dec 17, 2015 · 13 comments
Closed

borderWidth这个属性和系统的属性有冲突 #2

sunfusheng opened this issue Dec 17, 2015 · 13 comments

Comments

@sunfusheng
Copy link

您的:app:borderWidth (integer) Default to be 0
编译出错:Error:(2) Attribute "borderWidth" has already been defined

@tangqi92
Copy link
Owner

@sfsheng0322 请问你是不是使用了 Android Design Support Library ,抱歉,由于发布前没有经过详细地测试,给你带来了困扰,稍后我会对所有属性添加前缀以避免冲突,感谢你的反馈:)

@sunfusheng
Copy link
Author

嗯嗯
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

@tangqi92
Copy link
Owner

@sfsheng0322 你好,bug 已经修掉了,但是最新的 0.1.4 版本还没审核,所以现在你可以试着手动导入,再次感谢反馈!

@sunfusheng
Copy link
Author

谢谢啦,唐琪?

@ParhamAhmadi
Copy link

thanks @tangqi92
but when i compile this an error will be occured like the statement below:
"java.lang.IllegalArgumentException: width and height must be > 0"
how should i fix this ?
I'm waiting for your answer.
Regards

@tangqi92
Copy link
Owner

@ParhamAhmadi

Do you mind the xml posted here ?

Because according to your error message, I am currently unable to determine what went wrong.

@ParhamAhmadi
Copy link

@tangqi92
It's working correctly without code :
mWaveLoadingView.setWaveColor(Color.GRAY);

OR this :
mWaveLoadingView.setBorderColor(Color.GRAY);
but when i add the code , the error will be occurred with the text of :
"java.lang.IllegalArgumentException: width and height must be > 0"
and when i remove the code , it work good.
i don't know why this error occurs.
i really need it to work for my new android project by i can't compile it because of this error.

Thanks for your good supporting of this issue.

@tangqi92
Copy link
Owner

@ParhamAhmadi Hi
Sorry to keep you waiting, I made a stupid mistake, and now has been fixed. You can try to use the latest version 0.1.5 which i just updated.

Thank you for your support again!

@ParhamAhmadi
Copy link

Thanks,I will test it again now
Regards

@androidjx
Copy link

您好:我使用了 Android Design Support Library ,但是报“Error:(186) Attribute "borderWidth" has already been defined”错 。compile 'com.android.support:design:23.3.0'我用的是3.0的

@tangqi92
Copy link
Owner

tangqi92 commented Jun 1, 2016

@androidjx

你好,你能贴下具体的代码吗?

@androidjx
Copy link

D:\aspath\3CTV\starvideo\build\intermediates\res\merged\debug\values\values.xml
Error:(186) Attribute "borderWidth" has already been defined
Error:Execution failed for task ':starvideo:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\admins\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

@androidjx
Copy link

导完包以后就出现这样的错误了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants