GSYVideoPlayer icon indicating copy to clipboard operation
GSYVideoPlayer copied to clipboard

Failed to resolve: com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.1.6-jitpack

Open androidHRTZ opened this issue 5 years ago • 7 comments

  1. 项目添加其它任何依赖都是正常的,添加这个依赖(implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.1.6-jitpack')时候显示如下图失败。还有一个很奇怪的现象,现在新开的项目(默认Gradle之类的)每一个都显示这样
  2. 最新版本Android Studio默认新开的项目都是有这样不行的情况,但是若用以前新开的项目,又可以正常运行,请问为什么呢,我排查很久实在找不出问题 谢谢

image image image

androidHRTZ avatar Oct 30 '21 17:10 androidHRTZ

allprojects { repositories { google() mavenCentral() maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://jitpack.io" } } }

CarGuo avatar Oct 31 '21 00:10 CarGuo

allprojects { repositories { google() mavenCentral() maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://jitpack.io" } } }

感谢您的及时回复与帮助! 我添加您说的后build起来依然是这情况,如下图 image

androidHRTZ avatar Oct 31 '21 02:10 androidHRTZ

现在我是新开一个全新的项目运行的结果如下图,没能发现什么问题 ,然而运行失败 谢谢 image image image image

androidHRTZ avatar Oct 31 '21 02:10 androidHRTZ

90% 的时候网络问题,如果 maven { url "https://maven.aliyun.com/repository/public" } 也引用不到的话,那就只能开代理走梯子了

如下图,我这里的 mac ,你可以在 win 上开了梯子之后,在全局的 gradle 配置对应的代理地址和端口,测试依赖和运行正常

image

CarGuo avatar Nov 01 '21 01:11 CarGuo

v8.1.7-release-jitpack

CarGuo avatar Nov 21 '21 15:11 CarGuo

我这边也碰到了这种情况,更换代理什么的都拉不下来。 换了种解决方式,希望后来人能看到,并对你有所帮助。(折腾我一天) 在 settings.gradle> dependencyResolutionManagement > repositories 中添加 maven { url 'https://jitpack.io' } maven { url "https://maven.aliyun.com/repository/public" }

image

NickBoomBoom avatar Mar 18 '22 02:03 NickBoomBoom

我这边也碰到了这种情况,更换代理什么的都拉不下来。 换了种解决方式,希望后来人能看到,并对你有所帮助。(折腾我一天) 在 settings.gradle> dependencyResolutionManagement > repositories 中添加 maven { url 'https://jitpack.io' } maven { url "https://maven.aliyun.com/repository/public" }

image

有用,谢谢

shiyuzhe avatar Mar 24 '22 08:03 shiyuzhe