Unable to import module dependency
Answered
Hi
I'm trying to add a module from existing source to be used in another module. I can add the dependency under Project Settings | Modules | Dependencies. However, once I refresh grade, the dependency disappears. Even if Gradle isn't refreshed, the packages are only resolved in the IDE and can't be compiled.
Any help appreciated.
Please sign in to leave a comment.
Don't make the changes in IntelliJ IDEA configuration, you need to adjust Gradle build configuration instead. The sync is one way only, IntelliJ IDEA will read Gradle build files and adjust the dependencies automatically, not the other way around.