I am doing secondary development of detekt-intellij-plugin. When I use the two libraries detekt and android-lint, there are some kotlin-related class conflicts. The kotlin method in android lint cannot be loaded. Android lint can run normally only when kotlin-compiler-embeddable is excluded. But at this time, the kotlin method in detekt starts to be error. I guess this is because detektuses kotlin-compiler-embeddable instead of kotlin-compiler. But I don’t know how should it be solved.
I am doing secondary development of detekt-intellij-plugin. When I use the two libraries
detekt
andandroid-lint
, there are some kotlin-related class conflicts. The kotlin method in android lint cannot be loaded.Android lint
can run normally only whenkotlin-compiler-embeddable
is excluded. But at this time, the kotlin method indetekt
starts to be error. I guess this is becausedetekt
useskotlin-compiler-embeddable
instead ofkotlin-compiler
. But I don’t know how should it be solved.Here is my dependency in build.gradle