Closed wrparrish closed 6 years ago
Hey, I tried to reproduce the error with the code you provided but wasn't able to. As you suggested I created a new AS project and pulled in Belvedere v2. Can you maybe provide me with your sample project for recreation?
There's a view with the id image_stream_toolbar_container
https://github.com/zendesk/belvedere/blob/f39f36d763be38dd9a05d82db006ccfc368785af/belvedere/src/main/res/layout/belvedere_image_stream_toolbar.xml#L5
Sure! https://github.com/wrparrish/belvedere-test
Its important to mention, that everything works fine when i forked your repo. When i run the sample app there, and it compiles with the local bundled versions of belvedere and belvedere-core, i have no issue.
Its only when pulling in the dependency from maven.
I think I found the bug. The id image_stream_toolbar_container
is only defined for devices targeting API < 21. As a workaround, you can set your minSdk to 19 and it should stop crashing.
I'll push a fix in a bit. Thanks for reporting this issue. :+1:
Appreciate your prompt investigation!
On a side note, i recently integrated your Suas implementation in favor of a sort of ad-hoc version of redux i had been using. So far the experience has been outstanding, so thank you and your team for the effort put into that library as well.
Will drop to 19 for now, and keep an eye out for the next release.
Thanks!
I merged a PR with a fix for this issue. The CI deployed a new snapshot with the latest changes. Feel free to check it out.
Awesome, everything is working great on my end!
Thank you for looking into this.
Hello!
I'm getting a crash whenever trying to use the ImageStream feature of belvedere.
The crash message is as follows: java.lang.NoSuchFieldError: No static field image_stream_toolbar_container
When using the 2.0.0 sources linked on the project page, the following line in the ImageStream UI class at line 150 fails to compile correctly.
This can be reproduced by just creating a new project with belvedere being the only dependency, and then trying to interact with the image stream.
The following code is a drop in example / activity