gpt4 book ai didi

android-gradle-plugin - 警告 : [options] bootstrap class path not set in conjunction with -source 1. 7 1 警告

转载 作者:行者123 更新时间:2023-12-04 04:16:50 32 4
gpt4 key购买 nike

我在构建时在我的 gradle 控制台中收到一条警告消息:

警告:[options] 引导类路径未与 -source 1.7 一起设置
1 条警告


我怎样才能解决这个问题?

任何帮助表示赞赏!

最佳答案

只需将以下代码放入 buildscript项目级别标签build.gradle :

tasks.withType(JavaCompile) {
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
options.setBootClasspath("PATH_TO_JAVA_7_JRE/lib/rt.jar")
}

只要确保更换 PATH_TO_JAVA_7_JRE与你的道路。

我自己已经在这个问题上挣扎了几个星期,终于想出了一个解决方案,希望它也适用于其他人。希望能帮助到你!

关于android-gradle-plugin - 警告 : [options] bootstrap class path not set in conjunction with -source 1. 7 1 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42599422/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com