Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR,……

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/fengyeNom1/article/details/86983549

在我使用构建版本gradle 26但是在将buildtoolsversion更改为27之后,就像这个图像

 错误:error build gradle screenshot

在gradle.build中添加以下内容:

compileOptions {

sourceCompatibility JavaVersion.VERSION_1_8

    targetCompatibility JavaVersion.VERSION_1_8

}

如下:

扫描二维码关注公众号,回复: 5899724 查看本文章

猜你喜欢

转载自blog.csdn.net/fengyeNom1/article/details/86983549