As/IDEA android java8 lambda表达式支持(retrolambda用法)

https://github.com/evant/gradle-retrolambda

https://plugins.gradle.org/plugin/me.tatarka.retrolambda#groovy-usage

me.tatarka.retrolambda

https://github.com/evant/gradle-retrolambda.git

https://github.com/evant/gradle-retrolambda

 

retrolambda plugin usage in as/idea:

Version 3.7.1 (latest)

https://github.com/evant/gradle-retrolambda.git
plugins {
  id "me.tatarka.retrolambda" version "3.7.1"
}


buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.me.tatarka:gradle-retrolambda:3.7.1"
  }
}

apply plugin: "me.tatarka.retrolambda"
 

posted @ 2021-05-13 00:57  petercao  阅读(28)  评论(0编辑  收藏  举报