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

Matt Kern
Matt Kern
849 Points

Starting over - getting error message from downloaded project files

I needed to start over and was hoping to grab some source files up to the point in the videos where I stopped. I grabbed the project files from the lesson page but I am getting an error message saying MainActivity.java doesn't exist.

Is there a quick to start in the middle of the project?

Thanks

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Can you tell me which video you tried to download from? I updated a few key videos and perhaps the project files need to be updated as well. Sorry for your trouble!

Matt Kern
Matt Kern
849 Points

Hi Ben

I think I grabbed the code from the "learning the language section. I was trying to move projects around and ended up messing up my main project. I tried to merge some files between projects and I think I confused Eclipse. Or just confused myself.

I ended up starting over and fast forwarding thru the videos. It was actually better that way since it forced me to review everything.

I did notice the package name in the source code I downloaded is the same as the package name in the play store which is different from the videos: com.example.crystallball vs com.example.crystal.ball

I know ShakeDetector.java has com.example.crystal.ball which caused me some confusion the first time around.

By the second time I was able to figure out what was wrong.

Great videos and even though Im still in the free trial I am happy to surrender my $25 here in a few days.

Thanks for responding!

Matt

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Awesome - glad you got it working, and thanks for the feedback! I'm about to start refreshing this whole course. The package name was created slightly differently with an older version of the tools. Something I'll be sure to mention next time!