Kotlin,Gradle:混合Android和非Android模块

时间:2018-02-06 21:38:02

标签: android gradle intellij-idea kotlin

我正在使用IntelliJ IDEA 2018.1 EAP。当我添加Android Gradle插件时,非Android模块的输出dirs(项目结构 - >非Android模块 - >路径)开始指向Sub EmailFRSErrors() Dim SrchRng As Range, cel As Range Set SrchRng = Range("A2:A5000") For Each cel In SrchRng If InStr(1, cel.Value, "22") > 0 Or InStr(1, cel.Value, "26") > 0 Or InStr (1, cel.Value, "44") > 0 Or InStr(1, cel.Value, "46") > 0 Then OpenOutlookEmail Exit Sub 'This will exit the sub after sending only one email instead of continuing and potentially sending multiple End If Next End Sub ,但实际的类位于build/classes/java/main & test }。因此,我无法运行JUnit测试(未找到测试)或build/classes/kotlin/main & test的普通应用程序。

https://github.com/Miha-x64/mixed-android-kotlin-project

我做错了什么?或者这是一个错误?

1 个答案:

答案 0 :(得分:0)

似乎YouTrack上存在相关问题:https://youtrack.jetbrains.com/issue/IDEA-122904