Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR,……
时间:2019-07-10 19:29:04
收藏:0
阅读:195
https://www.jianshu.com/p/434928537a90
在我使用构建版本gradle 26但是在将buildtoolsversion更改为27之后,就像这个图像

错误:error build gradle screenshot

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

完美解决
作者:凤李坤_1129
链接:https://www.jianshu.com/p/434928537a90
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
原文:https://www.cnblogs.com/tc310/p/11165742.html
评论(0)