[英]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:构建失败并出现异常。
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
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.