在kotlin android项目中使用intellij markdown

在kotlin android项目中使用intellij markdown,android,kotlin,Android,Kotlin,我想在一个android kotlin项目中使用intellij markdown,但它在java往返过程中失败了。现在,我正在寻找最不痛苦的方法来处理这个问题,并因此在这里提问——也许有人面临同样的问题。我目前想到的所有解决方案都不是很好,因为它们都偏离了上游 Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library depend

我想在一个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'

这就是我最后的做法:

您是如何编译intellij markdown的?intellij markdown的默认build.gradle生成Java 6字节码,不会触发此错误。我不编译它-我使用的是通过maven{url'}的maven repo生成的