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 (retired 2014) Pretty Little Things Animating the Answer

Animating the Answer | Challenge not working? | correct answer as not valid..

Hi, I'm getting the following errors: JavaTester.java:1: package android.widget does not exist import android.widget.TextView; ^ JavaTester.java:2: package android.view.animation does not exist import android.view.animation.AlphaAnimation; ^ JavaTester.java:3: package android.view does not exist import android.view.View; ^ JavaTester.java:12: cannot find symbol symbol : class View location: class JavaTester private static View findViewById(int id) { ^ JavaTester.java:24: cannot find symbol symbol : class AlphaAnimation location: class JavaTester private static void setAnimation(AlphaAnimation animation) { ^ JavaTester.java:15: cannot find symbol symbol : class TextView location: class JavaTester return new TextView(); ^ JavaTester.java:38: cannot find symbol symbol : class TextView location: class JavaTester TextView statusLabel = (TextView) findViewById(R.id.statusLabel); ^ JavaTester.java:38: cannot find symbol symbol : class TextView location: class JavaTester TextView statusLabel = (TextView) findViewById(R.id.statusLabel); ^ JavaTester.java:39: cannot find symbol symbol : class AlphaAnimation location: class JavaTester AlphaAnimation fadeOutAnimation = new AlphaAnimation(1,0); ^ JavaTester.java:39: cannot find symbol symbol : class AlphaAnimation location: class JavaTester AlphaAnimation fadeOutAnimation = new AlphaAnimation(1,0); ^ JavaTester.java:46: cannot find symbol symbol : class TextView location: class JavaTester if (TextView.class.isInstance(statusLabel) && AlphaAnimation.class.isInstance(fadeOutAnimation)) { ^ JavaTester.java:46: cannot find symbol symbol : class AlphaAnimation location: class JavaTester if (TextView.class.isInstance(statusLabel) && AlphaAnimation.class.isInstance(fadeOutAnimation)) { ^ 12 errors

The only thing it asks to do is to set a duration to the fadeOutAnimation as 2 seconds. I used the following code:

AlphaAnimation fadeOutAnimation = new AlphaAnimation(1,0); fadeOutAnimation.setDuration(2000); is that wrong?

1 Answer

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

Hi Alo,

Thanks for posting this, and sorry for any inconvenience this may have caused.

We're in the process of rolling out some improvements to our code-challenge system to provide more reliablility and faster feedback on code submissions, and we've been running the new system in tandem with the old system tonight for testing before taking it live.

It looks like some of the challenges may have been having some trouble on the new system, so we shut them down while we investigated. This issue should be fixed now, and I confirmed I was able to pass the challenge with your provided code sample.

Thanks again for bringing this to our attention, and happy coding!

Regards,

Nathan W

Thanks everything is working great now. Great work guys