【问题标题】:React native android build fails with Execution failed for task ':app:lintVitalRelease'. Could not download groovy-all-2..4.15.jarReact 本机 android 构建失败,任务 ':app:lintVitalRelease' 执行失败。无法下载 groovy-all-2..4.15.jar
【发布时间】:2021-07-13 14:46:13
【问题描述】:

使用 AWS CodeBuild 构建 Android 失败并出现以下错误:

Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
   > Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
         > Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
            > Connection reset

构建在我的本地机器上运行良好。上述错误仅在尝试使用 AWS CodeBuild 构建 apk 时发生。

如果这与jcenter shutdown有关,如何解决?

【问题讨论】:

    标签: android react-native groovy pipeline aws-codebuild


    【解决方案1】:

    打开你的build.gradle文件并在android下添加以下代码:

    安卓{

    lintOptions { 
      checkReleaseBuilds false 
    }
    

    更多详情Here

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-14
    • 2022-09-24
    • 2020-07-16
    • 2018-12-18
    • 1970-01-01
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    相关资源
    最近更新 更多