You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
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?
vignesh-s
added a commit
to testpress/android
that referenced
this issue
May 18, 2018
- Updated SDK version to 1.3.0
- Updated build tools & gradle versions.
- Removed fbutton library since it is not supporting lastest build
tools version hoang8f/android-flat-button#40
& replaced with AppCompatButton.
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)
The text was updated successfully, but these errors were encountered: