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 trialMUZ140537 Kudakwashe Betera
4,875 PointsFactBook
can not resolve symbol FactBook
how can i solve this http://grab.by/GMpK
4 Answers
MUZ140537 Kudakwashe Betera
4,875 PointsI think i defined the class but am not sure how to organise my imports http://grab.by/GMZM and am getting an error cannot find symbol class FactBook like so http://grab.by/GN0a
Andrew Pritykin
6,574 PointsHave you tried to rebuild / clean your project?
For Windows/Linux, you can go to File -> Settings -> Editor -> Auto Import -> Java and make the following changes:
change Insert imports on paste value to All
markAdd unambigious imports on the fly option as checked
On a Mac, do the same thing in Android Studio -> Preferences
MUZ140537 Kudakwashe Betera
4,875 Pointsi created a new FactBook after Exit Android Studio Back up your project Delete all the .iml files and the .idea folder Relaunch Android Studio and reimport your project
and it worked
Steve Hunter
57,712 PointsHave you defined a class called FactBook
? You may need to organise your imports to include that first. Make sure your class is called that exactly.
Steve.
MUZ140537 Kudakwashe Betera
4,875 PointsHi Steve can you help me with my project i am thinking of doing a Football Fixture android app or a Recipe app but wanted FF app but dont knw where to start or get the fixture to link with my app so that it updates automatically online more like e Stormy app
Pliz hel
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsYes - that all looks fine. Very strange.
I'll have a think about that - I'm not sure what to suggest!