> 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
}