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

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!