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 trialvenkatesh rane
356 PointsWhen i paste the code i gives me the error on TextView and ImageView... what should i do??
When i paste the code i gives me the error on TextView and ImageView and when i press alt+enter it shows me some options like import class..what should i do
3 Answers
Pablo Rocha
10,142 PointsThere is a dependency in the code you pasted. Try adding the following code to the import section of the file you are getting the error in:
import android.widget.ImageView;
rtrind
6,358 PointsDid you tried using the alt+enter combo to check for the suggestions? I had the same problem and is was the import missing for the ImageView, just like suggested by Jose.
Stephen Goodwin
5,479 PointsYou should start by telling us what the error is. To avoid a long list of questions you can post as many details about it as possible. Windows/Mac? Version of software? Version of gradle? Even your code you pasted into would help in figuring out why you got an error and how to fix it.