Mac:
File > Project structure. 需要将这样设置:
别的可以参照设置。
android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘me.tatarka:gradle-retrolambda:2.5.0‘
}
}
repositories {
mavenCentral()
}
apply plugin: ‘me.tatarka.retrolambda‘
然后就OK啦,尝试build你的工程吧,肯定棒棒哒~
原文地址:http://blog.csdn.net/hnaer_radasm/article/details/46490533