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

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

 错误:error build gradle screenshot

 

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

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

compileOptions {

sourceCompatibility JavaVersion.VERSION_1_8

    targetCompatibility JavaVersion.VERSION_1_8

}

如下:

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

 

相关文章:

  • 2021-04-29
  • 2021-11-17
  • 2021-08-13
  • 2021-05-08
  • 2021-09-17
  • 2021-08-30
  • 2021-12-26
  • 2021-09-19
猜你喜欢
  • 2021-12-18
  • 2021-05-02
  • 2021-05-03
相关资源
相似解决方案