hoang8f / android-flat-button

FButton - a flat button library for Android
Apache License 2.0
1.4k stars 327 forks source link

android studio 3.0 can't build #40

Open IvanGarza07 opened 6 years ago

IvanGarza07 commented 6 years ago

this is the error that android studio 3.0 show when run the project

Error inflating class info.hoang8f.widget.FButton

Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 1 to color: type=0x5
at android.content.res.TypedArray.getColor(TypedArray.java:463) at info.hoang8f.widget.FButton.parseAttrs(FButton.java:116)

AsifShaafi commented 6 years ago

Well I think the problem is with the android gradle plugin version. Try changing it to 2.3.3 in File -> Project Structure -> Project. It worked for me.

Abdulwahid80 commented 6 years ago

I have the same problem and I have solved it by changing the build gradle to 2.3.3 but still doesn't work. Also I have delete -google()- from build script repositories and allprojects repositories and it works perfectly. I don't know what the problem exactly or why adding google() repository cause this problem?