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

Java Local Development Environments Advanced Tooling Refactoring

edumorlom
edumorlom
4,073 Points

When trying to refactor I am getting an error. Why could this be?

I am getting an error that says when trying to refactor Queue<Song>:

Only fields, variables, method parameters or methods of valid type can be considered.

Vaibhav Yaramwar
Vaibhav Yaramwar
Courses Plus Student 4,292 Points

I am also getting same error. have you resolved this error?

5 Answers

just refactor from where you create the variable..

click on Queue<Song> inside "private Queue<Song> mSongQueue;" then press Refactor -> type migration..

edumorlom
edumorlom
4,073 Points

Hello, iI never figured it out... :(

I think we are missing the SongRequest class in the download.

Bryan Martinez
Bryan Martinez
2,227 Points

I've run into this issue and spent a couple of hours doing research to solve the issue with no luck. This sucks because I can't advance until I do it. Someone please help

Hey,did anybody find the solution? Me having the same problem :(