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 trialBedeho Mender
4,498 PointsCant compile/build the App! A. studio says it cannot find the symbol for TextView / Button!
Here is a screenshot(http://imgur.com/inkCZaS) of my stuff. Know that I started adding the empty string functions later because i tried to follow the video, but I had the same problem before when it was a static string.
1 Answer
Joon Son
5,269 Pointsi'm going to guess this happened because you didn't use autocomplete. autocomplete not only fills in the class for you but adds a nice import statement up top adding where the button and textview class came from. try adding this in your import statements
import android.widget.Button; import android.widget.TextView;
you might have to click on the button to drop the import statements if you see something like import ...
Daniel Hartin
18,106 PointsDaniel Hartin
18,106 PointsHi Bedeho
Can you post your code please, I assume there is supposed to be a link in the question but it hasn't worked unfortunately if that is the case.
Will be glad to help you once I can some of your code.
Daniel