Java file outside of source root | Just learning Java | Google Ads API
Answered
I'm trying to get the google ads client library into Intellij. Forgive me I've only been programming for about a month.
When I try and make a directory and insert the GitHub file, the contents say that the java file is outside of source root.
Is there an easy solution to fix this? I've never downloaded anything from Github before.

Please sign in to leave a comment.
See https://stackoverflow.com/a/43319356/104891.
If it's a Maven project, import the module from pom.xml instead so that it configures the roots automatically.
See https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start and https://www.jetbrains.com/help/idea/maven-support.html#maven_add_module .
Maven roots will be configured according to https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html .
This is the solution that worked for me:
I closed the project in IntelliJ, deleted the
.ideafolder in my project directory, and then reopened the project in IntelliJ.