Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,437 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!