使用第三方类库报错Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code
使用第三方类库报错Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code
在Android Studio中加了一个依赖之后,编译出错,解决办法是在项目的属性中设置 sourceCompatibility 和 targetCompatibility 为1.7
同时在build.gradle中添加jackOptions
android {
defaultConfig {
...
jackOptions{
enabled true
}
}
}
reference
Updated: 2022-12-10 21:21
Created: 2017-03-26 03:33