我想在一个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'
最佳答案
关于android - 在Kotlin android项目中使用intellij-markdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42773619/