简体   繁体   English

Android 使用“扫描”插件构建问题 - Flutter

[英]Android build issue with 'scan' plugin - Flutter

Android build failing with following exception. Android 构建失败,出现以下异常。

Plugin: scan [https://pub.dev/packages/scan]

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Execution failed for task ':app:mergeDevReleaseAssets'.出了什么问题:任务“:app:mergeDevReleaseAssets”执行失败。

Could not resolve all files for configuration ':app:devReleaseRuntimeClasspath'.无法解析配置“:app:devReleaseRuntimeClasspath”的所有文件。 Could not resolve com.huawei.hms:scanplus:2.1.0.300.无法解析 com.huawei.hms:scanplus:2.1.0.300。 Required by: project:app > project:scan > Could not resolve com.huawei.hms:scanplus:2.1.0.300.要求:project:app > project:scan > 无法解析 com.huawei.hms:scanplus:2.1.0.300。 > Could not get resource 'https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom'. > 无法获取资源“https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom”。 > Could not GET 'https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom'. > 无法获取“https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom”。 Received status code 502 from server: Bad Gateway从服务器收到状态码 502:Bad Gateway

  • Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。
  • Get more help at https://help.gradle.org BUILD FAILED in 2m 59shttps://help.gradle.org获得更多帮助 在 2m 59s 内构建失败

add: maven {url 'http://developer.huawei.com/repo'} check your build.gradle添加:maven {url 'http://developer.huawei.com/repo'}检查您的 build.gradle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM