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 trialMicah Murray
6,913 PointsI'm having a problem where IntelliJ cannot resolve imports even though the libraries are added to the project. Thanks.
I'm having a problem where IntelliJ cannot resolve imports even though the libraries are added to the project. It seems like its a problem with intellij itself but I don't know what. I'm new to intellij.
1 Answer
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsIf you are creating Gragle project, then Open Gradle Tool window:
https://www.jetbrains.com/help/idea/2016.2/gradle-tool-window.html
usually if libraries cannot be loaded, then you'll squiggly lines under libraries that were not imported.
Also post here your Gradle file:
build.gradle
.But the very best option would be to share project on GitHub, if you know how, so that anyone can take a look at your project files:
https://www.jetbrains.com/help/idea/2016.2/share-project-on-github-dialog.html
At last posting a screenshot here: well post it on the web somewhere, and share a link here, so that anyone can take a look could be one more option...
Micah Murray
6,913 PointsMicah Murray
6,913 PointsThe project was downloaded from GitHub and I wasn't able to resolve the problem with IntelliJ so I created a new project and copy the content of the downloaded project into it.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsAlexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsLet me tell you how I do it with project from GitHub, when for example, I want to import project, let it be "Giflib from Spring Basics Course" here at Treehouse:
https://github.com/treehouse-projects/giflib
Here are my steps:
git clone https://github.com/treehouse-projects/giflib
to this directory