安卓 AS build的时候,下载不了包download pom失败
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.android:flexbox:1.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
- https://repo.maven.apache.org/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
Required by:
project :app
> Could not find com.wang.avi:library:2.1.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/wang/avi/library/2.1.3/library-2.1.3.pom
- https://repo.maven.apache.org/maven2/com/wang/avi/library/2.1.3/library-2.1.3.pom
Required by:
project :app
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
在项目的build.gradle里加上
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }