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 Android Lists and Adapters (2015) Updating the Data Model Review: Updating the Data Model

EDGAR SCHMID
EDGAR SCHMID
8,171 Points

Can't move files to UI package

Hi! Im trying to move de AlertDialogFragment and MainActivity and the following error appears:

Problems detected: Field MainActivity.mProgressBar will be inaccessible from method MainActivity$$ViewBinder.bind(Finder, T, Object) Field MainActivity.mProgressBar will be inaccessible from method InnerUnbinder.unbind(T) Field MainActivity.mRefreshImageView will be inaccessible from method MainActivity$$ViewBinder.bind(Finder, T, Object) Field MainActivity.mRefreshImageView will be inaccessible from method InnerUnbinder.unbind(T) Field MainActivity.mTemperatureLabel will be inaccessible from method MainActivity$$ViewBinder.bind(Finder, T, Object) Field MainActivity.mTemperatureLabel will be inaccessible from method InnerUnbinder.unbind(T) Field MainActivity.mTimeLabel will be inaccessible from method MainActivity$$ViewBinder.bind(Finder, T, Object) Field MainActivity.mTimeLabel will be inaccessible from method InnerUnbinder.unbind(T)

2 Answers

As long as you follow the video and drag it into the new package I would click out of the error. Android studio may show you an error not in the video if you are using a newer video. I skipped the error and everything worked for me.

Kien Doan
Kien Doan
17,538 Points

Skip the error by clicking the Refactor button. Once the errors are prompted in Gradle console, click on "Do Refactor." The files will be moved successfully.