android studio 升级gradle到最新版本后 lambda表达式错误: 找不到符号(Windows10,Android studio3.6.2)(现将解决过程记录如下,相关过程记录如下,PS:最后解决办法是回退到正常的gradle版本)
解决办法:
1、选择Source Compatibility(未解决):
2、添加jackOptions (未解决):
defaultConfig {
minSdkVersion rootProject.ext.android["minSdkVersion"]
...
jackOptions {
enabled true
}
}
3、下载sdk相关(未解决)
4、清理缓存(未解决):
5、清除gradle缓存,退回到4.10.1版本(未解决)
6、回退gradle失败,手动选择gradle版本,并且project的build.gradle和gradle-wrapper.properties的版本也回退
Minimum supported Gradle version is 5.6.4. Current version is 4.10.1.
Please fix the project's Gradle settings.
Fix Gradle wrapper and re-import project
Open Gradle wrapper properties
Gradle settings