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 trial

Android Build a Simple Android App with Java Basic Android Programming Adding the OnClick Method

Alan Kuo
Alan Kuo
7,697 Points

To complaint a weird situation

So I downloaded the fun fact project from previous videos and used them to code till now, and when I started to run the app it crashed saying funFactActivity has stopped running.

The reason I found out is that our class is an abstract class which can't be instantiated.

I feel it's just strange that we can't inherit the code from previous videos and we have to figure out such a tiny detail in this video alone.

Is it for the sake of training us to debugging?

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

I think the videos mostly assume you're coding along from the very beginning. But I don't think the abstract thing was intentional. Most likely an accident. I will pass your complaint to someone who can fix that issue.

I am getting that same issue. The app crashes and gives an error message. Except mine says "depreciated API usage" on Android Studio. Currently still trying to figure out how to fix it. Please give an update when a solution is found. Thanks!