android - 在Kotlin android项目中使用intellij-markdown

标签 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 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/

相关文章:

Android "Hello World"Galaxy Tab 屏幕上的布局问题

android - 在 Kotlin 中解析二维数组

android - 如何制作无限计数查看寻呼机适配器和查看寻呼机

android - MessageAPI android Wear,可以给穿戴式设备发送消息,但穿戴式设备不能回传消息

android - 如何增加控件的触摸区域(ToggleButton)?

collections - 在 Kotlin 中维护重复值的两个列表的交集

android - 注解必须调用super的接口(interface)函数

kotlin - Kotlin:出现 ')'错误,代码未运行

unit-testing - 如何模拟返回Observable的响应式(Reactive)存储库

android - 使用 id 将按钮动态添加到线性布局?