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 trialThomas Williams
9,447 PointsReplacing extends AppCompatActivity with extends ListActivity isn't working
Like a few people on this task, I struggled to start an empty activity as per described in the question/s below. Following the listed possible solutions I added the import ........com.stormy.R which worked in getting rid of the highlighted errors, however, now I am replacing extends AppCompatActivity with extends ListActivity in DailyForecastActivity but it is coming up with cannot resolve symbol, AppCompatActivity is not mentioned in the tutorial video, is this an update and how do I resolve it?
1 Answer
Seth Kroger
56,414 PointsUse Quick Fix (Alt+Enter or click the red lightbulb) with the cursor on ListActivity. It should auto-import for you or show you other options.
Thomas Williams
9,447 PointsThomas Williams
9,447 PointsI was indeed missing an import statement (import android.app.ListActivity;), as always many thanks Seth.