gpt4 book ai didi

gradle - gradle依赖关系更新失败

转载 作者:行者123 更新时间:2023-12-03 05:40:34 25 4
gpt4 key购买 nike

我已经“安装”或包含了ben manes-gradle版本插件:

https://github.com/ben-manes/gradle-versions-plugin

下面的代码是build.gradle(项目:奖励)

应用插件:“com.github.ben-manes.versions”

buildscript {
ext.kotlin_version = '1.3.10'
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
}
}

当我尝试运行以下gradle任务时: gradledependentUpdates

我得到以下内容:
FAILURE: Build failed with an exception.
What went wrong:
Task 'gradle' not found in project ':app'. Some candidates are: 'bundle'.
Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 0s
11:23:53: Tasks execution finished 'gradle dependencyUpdates'.

最佳答案

经过进一步的测试后,我意识到我需要运行的任务前面不应有gradle这个词。命令行指令应该只是dependencyUpdates 。然后单击“确定”,它将导出报告。

enter image description here

关于gradle - gradle依赖关系更新失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53297284/

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