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

Error Message using arrays:

In the video All About @string Resources ...when I come to the part of using arrays ...I get an error on the line....mAndroidNames = resources.getStringArray(R.array.android_names);.....Intellisense suggests the following solution....Create field "array" in type "R".....Is there something wrong with my R.package?....can anybody help me resolve this issues?....Thanks a lot!

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Can you post your strings.xml file? Either there's something wrong in the XML, or perhaps your R file got corrupted and needs to be regenerated by doing Project > Clean and then a rebuild.

Thank you..this issue is fixed!