1.在Project级gradle中添加classpath'me.tatarka:gradle-retrolambda:3.5.0',如下图所示:
2.在Module级的gradle中添加:
apply plugin: 'me.tatarka.retrolambda'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
},如下图所示:
3.你懂的>怼一下红色箭头指向的按钮