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.

从2018.7到现在过去半年,什么都没改,结果报了个这个错 

最终解决:

apply plugin: 'com.android.application'
android {
defaultConfig {
    ...
    jackOptions{
        enabled true
    }
}
compileOptions{
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
}

把依赖里面写了latest的都改为当时没报错那个月的版本号

02-26 01:00