remove the following from your build.gradle:apply plugin: 'me.tatarka.retrolambda'
今天运行android studio升级后运行时出现如下错误:
WARNING: One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle:
apply plugin: 'me.tatarka.retrolambda'
To learn more, go to https://d.android.com/r/tools/java-8-support-message.html
原因:
Android Studio3.0以下的版本不支持Lambda表达式,所以要使用Lambda插件支持。现在Android Studio3.0以上的版本都支持Lambda表达式,所以现在Android Studio提示不需要用这个Lambda插件了。
解决办法:移除这个插件即可
第一步:
第二步: