Unable to import module dependency
已回答
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.
请先登录再写评论。
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.