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

后端 未结 4 1251
逝去的感伤
逝去的感伤 2021-02-12 09:49

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:28

    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.

提交回复
热议问题