Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

kelvin gwaruka
kelvin gwaruka
931 Points

Cant create page array

In the page class, I get an 'can not resolve symbol' for Page, error when i enter,

private Page [] mPages;

When I press alt + Enter, the only Pages I get are PDF document and PDF render.

Please help.

Seth Kroger
Seth Kroger
56,403 Points

Did you create your Page class already? Are there any errors in your Page class? Is it in the same folder as the class you are trying to use it in or some other?

1 Answer

kelvin gwaruka
kelvin gwaruka
931 Points

I have resolved it. I had put pages with capital letter 'P' but small letter p seems to work. Thanks for your quick response Seth Kroger.