Android Studio编译失败:Error: Invoke-customs are only supported starting with Android O (--min-api 26)

Android Studio编译报错:

Error: Invoke-customs are only supported starting with Android O (--min-api 26)

解决方案:

build.gradle文件中android节点下增加:


   
   
   
   
  1. compileOptions {
  2. sourceCompatibility JavaVersion.VERSION_1_8
  3. targetCompatibility JavaVersion.VERSION_1_8
  4. }

Android Studio编译失败:Error: Invoke-customs are only supported starting with Android O (--min-api 26)_第1张图片

安卓开发技术分享:https://blog.csdn.net/yinxing2008/article/details/84555061

版权声明:本文为程序园中猿原创文章,转载请注明出处 https://blog.csdn.net/yinxing2008/article/details/83619313

作者:程序园中猿
来源:CSDN
原文:https://blog.csdn.net/yinxing2008/article/details/83619313
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(安卓)