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

The auto predict isn't working in my studio

Hello there, my question / problem it seems like not all the libraries are imported into my project and so it seems like i'm missing methods. For instance when i try to create an new OnClickListener i end up with this android.content.DialogInterface.OnClickListener() instead of the completed method. Any ideas as to what may be wrong?

Thanks Matt

Justin Horner
Justin Horner
Treehouse Guest Teacher

Hello Matthew,

When you want to create a new OnClickListener, is the auto-completion feature only giving you DialogInterface.OnClickListener as an option? Or are you seeing the auto-complete popup at all?

I had uninstalled and re installed the android studio. Now my libraries imported correctly and everything seems to be working as it should.

Thanks, Matt

Justin Horner
Justin Horner
Treehouse Guest Teacher

Awesome! Glad the problem is resolved.