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

crash when os's verison > 23 #37

Closed
marvinlix opened this issue Mar 14, 2016 · 6 comments
Closed

crash when os's verison > 23 #37

marvinlix opened this issue Mar 14, 2016 · 6 comments

Comments

@marvinlix
Copy link

crash log.

03-14 23:53:36.931 18043 18043 E AndroidRuntime: Caused by: java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to android.support.graphics.drawable.VectorDrawableCompat
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:833)
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:469)
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:859)
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:6251)
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
03-14 23:53:36.931 18043 18043 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
@marvinlix
Copy link
Author

VectorDrawableCompat drawable = (VectorDrawableCompat) ContextCompat.getDrawable(this, drawableRes);

drawable have to be Drawable

@TheFinestArtist
Copy link
Owner

Oh my god.. Got you!

TheFinestArtist added a commit that referenced this issue Mar 15, 2016
@TheFinestArtist
Copy link
Owner

Fixed and released! @marvinlix Thanks for reporting issue!

@Heri14
Copy link

Heri14 commented Apr 3, 2016

This problem still persists.

1 similar comment
@cyqluowang
Copy link

This problem still persists.

@mopsalarm
Copy link
Contributor

A 'fixed' version is available as jitpack dependency from my repo:
compile 'com.github.mopsalarm:FinestWebView-Android:2cf36fd5298052490c5bc4535ba6a666c4208202'

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

5 participants