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 Animations and Transitions The Transitions Framework Create a Transition

Can't find symbol TransitionSet

Hi, I'm doing 1st challenge in Animations and Transitions and it says that it can't find symbol TransitionSet. I tried pasting in code I made along with videos, which is working, but for some reason in challenge it doesn't.

CodeChallenge.java
// Add your code below!
ViewGroup root = (ViewGroup) findViewById(R.id.container);

Scene scene = Scene.getSceneForLayout(root, R.layout.transition_scene_2, getContext());

TransitionSet set = new TransitionSet();

ChangeBounds changeBounds = new ChangeBounds();
set.addTransition(changeBounds);

Ok, this is an old question but a few people had this issue. You don't need a TransitionSet here and it won't work (probably not imported according to other people). Can skip straight to TransitionManager.go(scene, new ChangeBounds());