Gradle:在非Android项目上检测到不受支持的模块

时间:2018-12-26 01:28:20

标签: gradle kotlin kotlin-dokka

我在gradle项目中收到此警告/错误消息: psql: could not connect to server: Operation timed out Is the server running on host "<databaseID>.<id>.us-east-1.rds.amazonaws.com" (12.34.56.78) and accepting TCP/IP connections on port 5432?

我对Gradle并不完全熟悉,我搜索了类似的错误,并在Android环境中找到了这些东西,但是我只使用Kotlin和一些库。

Unsupported Modules Detected: Compilation is not supported for following modules: io.github.dogo-Dogo, Dogo_main, Dogo_test. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

那么,如何解决此错误/警告消息?我不确定,但是我认为当我添加Dokka(Kotlin文档工具)时它开始出现

2 个答案:

答案 0 :(得分:1)

针对Intellij IDEA的建议修复程序对我有用-适用于纯Kotlin工作(不包括任何Android跨界工作):

文件->设置->插件->已安装标签->取消选中“ Android支持”

日志事件不见了...(h / t Joern Mangels)

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000404920/comments/360000086479

答案 1 :(得分:0)

1-关闭项目

2-关闭Android Studio IDE

3-删除.idea目录

4-删除所有.iml文件

5-打开Android Studio IDE并导入项目