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 trialNikolay Egov
96 PointsError: cannot find symbol
I keep getting this error. I checked the video several times and I can't find the issue. Any ideas?
Button loadPuppiesButton = (Button) findViewById(R.id.puppiesButton);
String buttonLabel = getString(R.string.morePuppies);
loadPuppiesButton.setText(getString(R.string.buttonLabel));
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="morePuppies">See More Puppies</string>
<string name="buttonLabel">LOAD</string>
</resources>
1 Answer
Nikolay Egov
96 PointsI misunderstood what was asked in the assignment. All set now. Please ignore.
Nikolay Egov
96 PointsNikolay Egov
96 PointsFull Error message: JavaTester.java:72: error: cannot find symbol loadPuppiesButton.setText(getString(R.string.buttonLabel)); ^ symbol: variable buttonLabel location: class string 1 error