坑死了,网上搜了半天都说在build.gradle 里加上这个能解决:

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

关键是一个project中有两个这个文件
要加到src文件夹里的build.gradle…!!! 不是gradle里的呢个。。。

加上以后慢慢等吧,gradle特别慢

Invoke-customs are only supported starting with android 0 --min-api 26 2019.01.27

相关文章:

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