Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option #32

Closed
Chen-Xi-g opened this issue Sep 13, 2021 · 2 comments

Comments

@Chen-Xi-g
Copy link

我在使用的时候出现这个问题,它提示我以下错误信息:
image
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
但是我运行的时候他没有任何问题。
而且在app -> build.gradle 中添加了以下代码,并没有什么用。
image

@DylanCaiCoding
Copy link
Owner

你到设置里把 Target JVM version 改为 1.8 试下。

image

@Chen-Xi-g
Copy link
Author

我已经解决了这个问题,已经设置了这个选项还是会出现该问题。
我的解决方法是:我在项目中使用了BuildSrc编写了一些插件任务。而buildSrc中的Kotlin版本默认JVM为1.6,导致出现这个错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants