gpt4 book ai didi

android - google-java-format 依赖同步但没有得到构建。

转载 作者:行者123 更新时间:2023-11-30 05:10:38 24 4
gpt4 key购买 nike

我在 rootProject 构建脚本中添加了 mavenCentral()。但是它在构建时给出了以下错误。对此有任何想法。

You probably need to add a repository containing the '[com.google.googlejavaformat:google-java-format:1.5]' artifact in the 'build.gradle' of your root project.

E.g.: 'buildscript { repositories { mavenCentral() }}'

Note that included buildscripts (using 'apply from') do not share their buildscript repositories with the underlying project.

You have to specify the missing repository explicitly in the buildscript of the root project.

最佳答案

您的 build.gradle(project) 中是否有 jcenter() 作为存储库?

已经存在 Google Java Format in JCenter

关于android - google-java-format 依赖同步但没有得到构建。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53810564/

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