flutter_amap_location icon indicating copy to clipboard operation
flutter_amap_location copied to clipboard

flutter 打包报错

Open DMCHZP opened this issue 5 years ago • 2 comments

  • What went wrong:
    Could not determine the dependencies of task ':amap_location:mergeReleaseResources'.

Could not resolve all task dependencies for configuration ':amap_location:releaseRuntimeClasspath'. Could not resolve com.amap.api:location:latest.integration.
Required by:
project :amap_location
> Failed to list versions for com.amap.api:location.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/com/amap/api/location/maven-metadata.xml. > Could not HEAD 'http://repo1.maven.org/maven2/com/amap/api/location/maven-metadata.xml'. Received status code 501 from server: HTTPS Required

DMCHZP avatar Jan 17 '20 07:01 DMCHZP

我这儿也报错,升级到flutter 1.17版本之后

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':amap_location:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':amap_location:debugCompileClasspath'. Could not resolve com.amap.api:location:latest.integration. Required by: project :amap_location > Failed to list versions for com.amap.api:location. > Unable to load Maven meta-data from https://storage.googleapis.com/download.flutter.io/com/amap/api/location/maven-metadata.xml. > Could not get resource 'https://storage.googleapis.com/download.flutter.io/com/amap/api/location/maven-metadata.xml'. > Could not GET 'https://storage.googleapis.com/download.flutter.io/com/amap/api/location/maven-metadata.xml'. > Connect to storage.googleapis.com:443 [storage.googleapis.com/34.64.4.112] failed: Read timed out

chenjinguang avatar May 09 '20 03:05 chenjinguang

同上 升级到1.17.0后报相同的错

我是这么解决的

shichunlei avatar May 11 '20 07:05 shichunlei