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

A sheet crashes when using vector icon #43

Closed
aratn0n opened this issue Apr 18, 2017 · 3 comments
Closed

A sheet crashes when using vector icon #43

aratn0n opened this issue Apr 18, 2017 · 3 comments

Comments

@aratn0n
Copy link

aratn0n commented Apr 18, 2017

I got this error when I uses vector icon in a menu

android.content.res.Resources$NotFoundException: File res/drawable-hdpi-v4/ic_translate_grey_48dp.xml from drawable resource ID #0x7f02008d. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.
	at android.content.res.Resources.loadDrawable(Resources.java:2600)
	at android.content.res.Resources.getDrawable(Resources.java:795)
	at com.kennyc.bottomsheet.b.b.setIcon(Unknown Source)
	at android.view.MenuInflater$MenuState.setItem(MenuInflater.java:399)
	at android.view.MenuInflater$MenuState.addItem(MenuInflater.java:451)
	at android.view.MenuInflater.parseMenu(MenuInflater.java:188)
	at android.view.MenuInflater.inflate(MenuInflater.java:110)
@Kennyc1012
Copy link
Owner

Please use the 2.3.4 release and let me know if the issue persists. I was unable to reproduce it using that build.

@aratn0n
Copy link
Author

aratn0n commented Sep 18, 2017

Hi, I'm so sorry from being late. The crash only happen on my KitKat Device. I already tried 2.3.4, but it still has this problem.

@Kennyc1012
Copy link
Owner

Kennyc1012 commented Sep 18, 2017

This is because Vector icons are not supported pre Lollipop (5.0) so it will crash on KitKat.

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

2 participants