前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >java.lang.BootstrapMethodError: Exception from call site #0 bootstrap method

java.lang.BootstrapMethodError: Exception from call site #0 bootstrap method

作者头像
仰止
修改2019-09-04 14:20:29
2.8K1
修改2019-09-04 14:20:29
举报
文章被收录于专栏:Android开发问题

解决方案:https://github.com/JakeWharton/butterknife/issues/1468

ButterKnife requires that you enable Java 8 in your builds to function as of version 9.0.0 and newer. You can learn more about how to enable this at https://developer.android.com/studio/write/java8-support.

Butterknife 9.0.0以后的版本需要Java8的支持。

在build.gradle中加入

代码语言:javascript
复制
android{
  compileOptions {
     targetCompatibility = "8"
     sourceCompatibility = "8"
  }
}

本文系外文翻译,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系外文翻译前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档