在kotlin android项目中使用intellij-markdown

我想在一个android kotlin项目中使用intellij-markdown,但是它并不能保证java往返。 现在我正在寻找处理这个问题的最痛苦的方法,因此在这里问 – 也许有人面临同样的问题。 目前所有的解决方案都不是很好,因为它们都与上游不同。

Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file. Error:1 error; aborting Error:Execution failed for task ':android:transformClassesWithDexForProdWithFirebaseDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex '/home/ligi/.gradle/caches/modules-2/files-2.1/org.jetbrains/markdown/0.1.23/f02dce4ef95be9f24a6ea59de2c187f597befb70/markdown-0.1.23.jar' to '/home/ligi/git/SurvivalManual/android/build/intermediates/transforms/dex/prodWithFirebase/debug/folders/1000/10/markdown-0.1.23_4afcc7019db1f3375984c600cc493df386228117' 

这是我最后的方式: https : //github.com/valich/intellij-markdown/pull/19