支持的源版本' RELEASE_7'来自注释处理器' android.arch.lifecycle.LifecycleProcessor'少于-source' 1.8'

时间:2018-05-28 10:10:18

标签: java android java-8

这个errpr是什么?
支持的源版本' RELEASE_7'来自注释处理器' android.arch.lifecycle.LifecycleProcessor'少于-source' 1.8'

我们添加了

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8

    }

在gradle中没有用;

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.

0 个答案:

没有答案