【问题标题】:Gradle 7.0.2 lintClassPath Could not parse module metadataGradle 7.0.2 lintClassPath 无法解析模块元数据
【发布时间】:2021-10-06 20:40:16
【问题描述】:

我正在尝试升级到 Gradle 7,但在尝试运行 lintDebug 时遇到了问题。该应用程序本身构建得很好。
这是错误
有什么建议? (我的 ANDROID_HOME 和 local.properties 设置正确)

> Could not resolve all files for configuration ':core:lintClassPath'.
   > Could not resolve org.testng:testng:7.3.0.
     Required by:
         project :core > com.android.tools.lint:lint-gradle:30.0.2 > org.codehaus.groovy:groovy-all:3.0.7 > org.codehaus.groovy:groovy-testng:3.0.7
      > Could not resolve org.testng:testng:7.3.0.
         > Could not parse module metadata https://<ARTIFACTORY_REDACTED>/org/testng/testng/7.3.0/testng-7.3.0.module
            > Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $

【问题讨论】:

    标签: android android-gradle-plugin lint


    【解决方案1】:

    我完全忘记发布反馈了。 看起来 artifactory 引入了错误的依赖项,这就是我收到此错误的原因。

    【讨论】:

      猜你喜欢
      • 2018-11-19
      • 2012-09-04
      • 1970-01-01
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多