Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Source not found problem in BlogReader app

I was working on a BlogReader app and was about to see a list of posts in my app when I started to get an error about Source not found. Please, see a screenshot from debugging mode https://www.dropbox.com/s/w50bt07k08ok5gn/Screenshot%202014-08-16%2014.42.34.png and a screenshot of Java perspective https://www.dropbox.com/s/iswzx8v1q4sc8ke/Screenshot%202014-08-16%2014.43.16.png . Note a little icon on top of src and gen folders. Would appreciate any pointers on how to resolve this.

2 Answers

Harry James
Harry James
14,780 Points

Hello,

The icons are perfectly normal. They just mean that there is packages within that directory.

As for the error, is it causing you to not be able to run the app (Or is LogCat throwing errors when you try to?). If so, provide a log of these errors.

If not, I assume that the problem is just that Eclipse can't find the file that's opened. I don't recognise it and don't think I have it in my program so, I'd just close the file with the source error from the viewer. I guess it just somehow opened up :s

Thank you for the reply. I was able to resolve the problem by comparing code in downloaded project files to my code. Problem was in handleBlogResponse() function.

Also, it should be noted that there is a significant discrepancy in code in the video lecture and corresponding project files. Code in the video does not actually work. This is in reference to this lecture http://teamtreehouse.com/library/build-a-blog-reader-android-app/adapting-data-for-display-in-a-list/filling-our-string-array-and-creating-the-adapter-2 .