问题说明:

运行时报错。错误如下: Static interface methods are only supported starting with Android N (--min-api 24)。

问题原因:

仅从Android N开始支持静态接口方法。

解决办法:

指定jdk版本

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

重新运行即可。

更多相关文章

  1. mybatisplus的坑 insert标签insert into select无参数问题的解决
  2. Android系统工具之Roblectric 使用过程中问题总结
  3. Android(安卓)NDK学习 C++ 支持
  4. 2013.03.19(3)———android ActivityGroup的一些问题
  5. android 字符串国际化的问题
  6. Android(安卓)ListView 问题
  7. Android默认设置静态IP
  8. [原]运行编译好的Android模拟器
  9. android orientationchange的问题

随机推荐

  1. Android_linux下android platforms下载地
  2. android之wifi移植全过程(一)
  3. Android资源下载
  4. 2011.07.08(2)——— android 背景模糊
  5. Android 使用Telephony API
  6. android用于打开各种文件的intent
  7. Android : 继承BaseAdapter对ListView进
  8. 强制系统横屏竖屏
  9. Android: 下载并编译Android Source Tree
  10. iPhone与Android对比