打包失败解决


> Task :library:processReleaseJavaRes NO-SOURCE
> Task :library:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
> Task :library:mergeReleaseShaders
> Task :library:compileReleaseShaders
> Task :library:generateReleaseAssets
> Task :library:packageReleaseAssets
> Task :library:mergeReleaseConsumerProguardFiles
> Task :library:compileReleaseNdk NO-SOURCE
> Task :library:mergeReleaseJniLibFolders
> Task :library:transformNativeLibsWithMergeJniLibsForRelease
> Task :library:transformNativeLibsWithStripDebugSymbolForRelease
> Task :library:transformNativeLibsWithIntermediateJniLibsForRelease
> Task :app:mergeReleaseResources
> Task :app:javaPreCompileRelease
> Task :app:processReleaseResources
> Task :app:compileReleaseJavaWithJavac
ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
ע: ijЩ�����ļ�ʹ����δ�����򲻰�ȫ�IJ�����
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣

> Task :app:compileReleaseNdk NO-SOURCE
> Task :app:compileReleaseSources
> Task :app:lintVitalRelease
> Task :app:lintVitalRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
   > Could not download lint-gradle.jar (com.android.tools.lint:lint-gradle:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/lint/lint-gradle/26.3.1/lint-gradle-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/lint/lint-gradle/26.3.1/lint-gradle-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/172.217.24.14] failed: Connection timed out: connect
   > Could not download lint.jar (com.android.tools.lint:lint:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/lint/lint/26.3.1/lint-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/lint/lint/26.3.1/lint-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/172.217.24.14] failed: Connection timed out: connect
   > Could not download lint-checks.jar (com.android.tools.lint:lint-checks:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/lint/lint-checks/26.3.1/lint-checks-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/lint/lint-checks/26.3.1/lint-checks-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/172.217.24.14] failed: Connection timed out: connect
   > Could not download lint-api.jar (com.android.tools.lint:lint-api:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/lint/lint-api/26.3.1/lint-api-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/lint/lint-api/26.3.1/lint-api-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/172.217.24.14] failed: Connection timed out: connect
   > Could not download intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/external/com-intellij/intellij-core/26.3.1/intellij-core-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/external/com-intellij/intellij-core/26.3.1/intellij-core-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect
   > Could not download kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/external/com-intellij/kotlin-compiler/26.3.1/kotlin-compiler-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/external/com-intellij/kotlin-compiler/26.3.1/kotlin-compiler-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect
   > Could not download uast.jar (com.android.tools.external.org-jetbrains:uast:26.3.1)
      > Could not get resource 'https://maven.google.com/com/android/tools/external/org-jetbrains/uast/26.3.1/uast-26.3.1.jar'.
         > Could not GET 'https://maven.google.com/com/android/tools/external/org-jetbrains/uast/26.3.1/uast-26.3.1.jar'.
            > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect

* Try:
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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 57s
35 actionable tasks: 33 executed, 2 up-to-date

在app的build.gradle中的android部分添加如下代码块即可

 lintOptions {
       /*表示不需要检查错误,生成的隐患文件错误,不需要检查,生成文件不停止*/
       checkReleaseBuilds false
       /*关于错误信息,不需要打印错误,忽略错误信息*/
       abortOnError false
 }

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值