flutter_amap_location
flutter_amap_location copied to clipboard
Could not determine the dependencies of task ':amap_location:generateDebugRFile'.
amap_location: 0.1.2 Android studio 3.5.1 classpath 'com.android.tools.build:gradle:3.4.2'
Launching lib/main.dart on ELE AL00 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':amap_location:generateDebugRFile'.
> Could not resolve all task dependencies for configuration ':amap_location:debugRuntimeClasspath'.
> 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://maven.aliyun.com/nexus/content/repositories/releases/com/amap/api/location/maven-metadata.xml.
> Could not get resource 'http://maven.aliyun.com/nexus/content/repositories/releases/com/amap/api/location/maven-metadata.xml'.
> Could not GET 'http://maven.aliyun.com/nexus/content/repositories/releases/com/amap/api/location/maven-metadata.xml'.
> 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.org
BUILD FAILED in 1m 33s
Finished with error: Gradle task assembleDebug failed with exit code 1
I find this problem with amap_location's build.gradle, this message is as flollow:
compile is deprecated; replace with implementation
Inspection info:Some Gradle configurations have been deprecated since Android Gradle Plugin 3.0.0 and will be removed in a future version of the Android Gradle Plugin.
Issue id: GradleDeprecatedConfiguration
More info:
https://d.android.com/r/tools/update-dependency-configurations
Bud this motification is invalid.