Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
W Joel Baker
1,012 PointsResources pane to choose the image source not showing my drawables
I'm working on Introducing ImageViews. When I try to use the button next to the src for the new image the pane opens to choose from. However the images I imported from the course downloads is not appearing. There is a very long list of other images that are not in the project tree. When I look in the project tree the images I downloaded are there but none of the ones in the src pane are there. Any suggestions?
9 Answers
W Joel Baker
1,012 PointsSuccess! I added android:contentDescription="@null" Cleaned and rebuild. Error went away. Closed and reopened Studio, removed android:contentDescription="@null" cleaned and rebuild and problem solved. My code is back where it originally was but without the Studio errors. Sounds like a bug to me but not sure.
http://www.fileconvoy.com/dfl.php?id=gb2280bbffa5d829599964497252a9d13faeed5d31
Back to the video Thank you Steve!
Steve Hunter
57,712 PointsHi Joel,
Apologies, I'm being stupid and don't understand what you're trying to do. Perhaps get me a link of the course you're following and let me know the time elapsed into the video that this thing happens - I'll understand that, hopefully!!
Thanks,
Steve.
W Joel Baker
1,012 PointsHey Steve. I tried something and it has me on the right tract. I did refactoring. and placed them directly in the res instead of res/drawables. that made them appear however the main_title image will not appear. The message is....
Rendering Problems Couldn't resolve resource @drawable/main_title Failed to convert @drawable/main_title into a drawable
I'm doing https://teamtreehouse.com/library/build-an-interactive-story-app/user-input/introducing-imageviews. I've discovered poking around and trying things isn't always a bad thing!
Steve Hunter
57,712 PointsGlad you got it fixed.
Absolutely the best way to progress is to just try stuff. I've learned more from trying to figure out my mistakes (and there's a lot of those!) than from following the courses without thinking.
W Joel Baker
1,012 PointsWithout finding a fix I ran the emulator. It's working in the emulator but in Android Studio both design and text view I have that error and in the design view there is no image. I'd like to show you a screen shot but I haven't seen an option to attach a screen shot in the forum.
Steve Hunter
57,712 PointsSorry - I thought you'd got it fixed. For screenshots, I use Snagit by TechSmith. That gives you the ability to snip an area of the screen, or the whole screen and either download it as an image or share a link to it. You can do videos too which can be useful.
Like this.
W Joel Baker
1,012 PointsI should have thought of it sooner. I use Fileconvoy. http://www.fileconvoy.com/dfl.php?id=gdd8bcd9c8e218f4699964495403931729f9c63aae
Steve Hunter
57,712 PointsSilly question, but have you tried Build | Clean Project - that can soetimes help. And, I know it takes ages, but restarting Android Studio can also sometimes make this sort of thing go away.
I sound like Helpdesk, "Turn it of and on again". ;-)
Steve.
W Joel Baker
1,012 PointsHaha! I sound like that everyday doing tech support for our customers :-) No worries. I've done both several times with no luck. Still researching and trying. I don't give up easy.
I found references to use android:contentDescription="@null" I'll let you know.
Thanks for the help. Encouraging just having someone to talk it through with.
Steve Hunter
57,712 PointsTried a re-sync?
Steve Hunter
57,712 PointsDo you use Github for version control? If so, I can load your code and see if it works here, or if the problem is local to you.
W Joel Baker
1,012 PointsI set up an account but have not used it yet. I just uploaded the source and seems to have been successful.
Steve Hunter
57,712 PointsCan't see you - I'm OnlySteveH.
W Joel Baker
1,012 PointsI just "followed you" will you be able to find me now?
Steve Hunter
57,712 PointsGotya! You repo is empty, so the push didn't work. Not that it matters for now as you're sorted.
Well done for fixing that. Silly errors in Studio take ages to fix sometimes.
W Joel Baker
1,012 PointsI added a very newbie "READ ME" and it looks like it's in both the contributions and repositories when I login.
Steve Hunter
57,712 PointsAh, yes. I can see that now.
There's a good course on Git & version control on Treehouse somewhere. I did it as part of the Ruby on Rails track.