Retrolambda - Jack is required to support java 8 - warning fix

后端 未结 4 1249
礼貌的吻别
礼貌的吻别 2021-02-12 09:58

Is there a way to disable warning about

Jack is required to support java 8 language features.

while using Retrolambda?

I don

4条回答
  •  醉梦人生
    2021-02-12 10:20

    You can just remove the following configuration from your build.gradle file:

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    

    The retrolambda plugin will take care of this anyway and setup the Java compiler task with the correct source and target compatibility settings.

提交回复
热议问题