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!

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 Simple Android App (retired 2014) Pretty Little Things Animating the Crystal Ball

Missing imageview1

Hi all, I am working on animating the crystal ball but intellisense is not locating the ImageView1 in the following code: ImageView crystalBallImage = (ImageView) findViewById(R.id.);

I do not even remember where this was added - anybody know how I can fix it?

2 Answers

Stone Preston
Stone Preston
42,016 Points

try using findViewById(R.id.imageView1) instead of findViewById(R.id.ImageView1) possibly? could be the capital I thats throwing it off. If not open up the XML and see if you can find the imageView there, it could have been renamed or maybe you forgot to add it

Thanks Stone. That didn't seem to help. Perhaps I'll have to go back to the beginning and try to track down where that was coded into the project. Cheers.