Invoke-customs are only supporte
2018-07-02 本文已影响5109人
北冥有鱼1129
在我使用构建版本gradle 26但是在将buildtoolsversion更改为27之后,就像这个图像

错误:error build gradle screenshot

在gradle.build中添加以下内容:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
如下:

完美解决