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

Derick Browne
PLUS
Derick Browne
Courses Plus Student 6,575 Points

Shake Detector

I have two errors on the download (Shake Detector) Description Resource Path Location Type The method onSensorChanged(SensorEvent) of type ShakeDetector must override a superclass method ShakeDetector.java /Crystal Ball/src/com/example/crystal/ball line 42 Java Problem Description Resource Path Location Type The method onAccuracyChanged(Sensor, int) of type ShakeDetector must override a superclass method ShakeDetector.java /Crystal Ball/src/com/example/crystal/ball line 84 Java Problem Can someone explain for me please.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Check out this earlier post about this same issue: http://teamtreehouse.com/forum/adding-a-shake-detector

This appears to usually be a problem with project-specific compiler settings (read all the way to the bottom of the post).

Hope this helps!