為您解碼網(wǎng)站建設(shè)的點點滴滴
發(fā)表日期:2018-12 文章編輯:小燈 瀏覽次數(shù):4699
打包失敗
flutter build apk --releaseInitializing gradle... 3.5sResolving dependencies... 215.7sGradle task 'assembleRelease'...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-checks.jar (com.android.tools.lint:lint-checks:26.2.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.2.1/lint-checks-26.2.1.jar'. > Read timed out > Could not download lint-api.jar (com.android.tools.lint:lint-api:26.2.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/26.2.1/lint-api-26.2.1.jar'. > Read timed out > Could not download intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.2.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.2.1/intellij-core-26.2.1.jar'. > Read timed out > Could not download uast.jar (com.android.tools.external.org-jetbrains:uast:26.2.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.2.1/uast-26.2.1.jar'. > Read timed out > Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.12)> Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar'. > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar'.> Connect to d29vzk4ow07wi7.cloudfront.net:443 [d29vzk4ow07wi7.cloudfront.net/13.32.163.34, d29vzk4ow07wi7.cloudfront.net/13.32.163.93, d29vzk4ow07wi7.cloudfront.net/13.32.163.242, d29vzk4ow07wi7.cloudfront.net/13.32.163.206] failed: Read timed out > Could not download trove4j.jar (org.jetbrains.trove4j:trove4j:20160824)> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar'.> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Read timed out > Could not download kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.2.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.2.1/kotlin-compiler-26.2.1.jar'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.2.1/kotlin-compiler-26.2.1.jar'.> Remote host closed connection during handshake > Could not download error_prone_annotations.jar (com.google.errorprone:error_prone_annotations:2.0.18)> Could not get resource 'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar'. > Could not GET 'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar'.> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Read timed out* 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.orgBUILD FAILED in 4m 1s
修改項目下build.gradle和flutter/packages/flutter_tools/gradle/flutter.gradle兩個文件中buildscript和allprojects,共三處
google()
jcenter()
為
maven { url?'https://maven.aliyun.com/repository/google'?}
maven { url?'https://maven.aliyun.com/repository/jcenter'?}
maven { url?'http://maven.aliyun.com/nexus/content/groups/public'?}
打包成功
Gradle task 'assembleRelease'... Done 21.9s
Built build/app/outputs/apk/release/app-release.apk (5.3MB).
日期:2018-10 瀏覽次數(shù):7359
日期:2018-12 瀏覽次數(shù):4427
日期:2018-07 瀏覽次數(shù):4963
日期:2018-12 瀏覽次數(shù):4262
日期:2018-09 瀏覽次數(shù):5601
日期:2018-12 瀏覽次數(shù):10016
日期:2018-11 瀏覽次數(shù):4903
日期:2018-07 瀏覽次數(shù):4670
日期:2018-05 瀏覽次數(shù):4954
日期:2018-12 瀏覽次數(shù):4405
日期:2018-10 瀏覽次數(shù):5229
日期:2018-12 瀏覽次數(shù):6302
日期:2018-11 瀏覽次數(shù):4558
日期:2018-08 瀏覽次數(shù):4685
日期:2018-11 瀏覽次數(shù):12752
日期:2018-09 瀏覽次數(shù):5675
日期:2018-12 瀏覽次數(shù):4935
日期:2018-10 瀏覽次數(shù):4272
日期:2018-11 瀏覽次數(shù):4618
日期:2018-12 瀏覽次數(shù):6153
日期:2018-06 瀏覽次數(shù):4098
日期:2018-08 瀏覽次數(shù):5546
日期:2018-10 瀏覽次數(shù):4540
日期:2018-12 瀏覽次數(shù):4627
日期:2018-07 瀏覽次數(shù):4453
日期:2018-12 瀏覽次數(shù):4603
日期:2018-06 瀏覽次數(shù):4485
日期:2018-11 瀏覽次數(shù):4461
日期:2018-12 瀏覽次數(shù):4344
日期:2018-12 瀏覽次數(shù):5363
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.