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 Build a Weather App Working with JSON Setting the Weather Icon

All of the drawables have errors

For the getIconId, for the last part of R.drawable.clear_day (clear_day has the error line) and every other R.drawable says cannot resolve symbol even though I made sure that I copied and replaced all drawable and mipmap folders in the res. When I hit alt+enter it says I could "create drawable resource file", "create drawable value resource", and "create field '__ ' in 'drawable in R' ". What is the problem and what do I do?

1 Answer

Nevermind, I went to bed and closed Android Studio and opened it this morning and it got built and now it says no errors. I guess I didn't think of trying to rebuild it because the teacher didn't have that issue with this part of the code.

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

Hey Christopher, I just wanted to know I marked your answer as 'Best'. In the future when you solve the problem to a question you post, feel free to do this. This lets people easily see that the issue has been solved 👍

Happy Coding!