本文介绍: implementation ‘com.github.chrisbanes:PhotoView:2.2.0’ > Could not resolve com.github.chrisbanes:PhotoView:2.2.0. > Could not get resource ‘https://jitpack.io/com/github/chrisbanes/PhotoView/2.2.0/PhotoView-2.2.0.pom’. distributionUrl=https://services.gra

implementation ‘com.github.chrisbanes:PhotoView:2.2.0’ > Could not resolve com.github.chrisbanes:PhotoView:2.2.0. > Could not get resource ‘https://jitpack.io/com/github/chrisbanes/PhotoView/2.2.0/PhotoView-2.2.0.pom’. distributionUrl=https://services.gradle.org/distributions/gradle-7.5-bin.zip classpath ‘com.android.tools.build:gradle:4.2.2’ repositories { // maven { url ‘https://maven.aliyun.com/repository/public/’} // maven { url ‘https://maven.aliyun.com/repository/google/’} // maven{ url ‘https://maven.aliyun.com/repository/gradle-plugin’} // maven { url ‘https://maven.aliyun.com/repository/central’ } // maven{ url ‘https://maven.aliyun.com/repository/jcenter’} // google() // jcenter() jcenter() maven { url ‘https://maven.aliyun.com/nexus/content/groups/public/’ } maven { url ‘https://maven.aliyun.com/nexus/content/repositories/jcenter’ } maven { url ‘https://maven.aliyun.com/nexus/content/repositories/google’ } maven { url “https://www.jitpack.io” } google() mavenCentral() gradlePluginPortal() } allprojects { repositories { // maven { url ‘https://maven.aliyun.com/repository/public/’} // maven { url ‘https://maven.aliyun.com/repository/google/’} // maven{ url ‘https://maven.aliyun.com/repository/gradle-plugin’} // maven { url ‘https://maven.aliyun.com/repository/central’ } // maven{ url ‘https://maven.aliyun.com/repository/jcenter’} // google() // jcenter() // maven { url “https://jitpack.io” } // maven { url “https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master” } jcenter() maven { url ‘https://maven.aliyun.com/nexus/content/groups/public/’ } maven { url ‘https://maven.aliyun.com/nexus/content/repositories/jcenter’ } maven { url ‘https://maven.aliyun.com/nexus/content/repositories/google’ } maven { url “https://www.jitpack.io” } google() mavenCentral() }}

demo 使用 2.2.0解决的
https://www.jitpack.io/com/github/chrisbanes/PhotoView/maven-metadata.xml 

原文地址:https://blog.csdn.net/chezabo6116/article/details/136020243

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。

如若转载,请注明出处:http://www.7code.cn/show_67749.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注