-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
中文
目前有三种托管方式,详细可见 README :
- MavenCentral : 11.0.0 版本以后才有,所有基类包都发布托管在这里
- Github Package : 9.1.0 版本开始才有, 但是 11.0.0 之前, GSYIjkJava 的基础依赖还是在托管在 jitpack
- Jitpack IO :依然会发布,但是存在托管平台随机丢包
面对 jitpack 平台一直出现随机丢包问题,这里主要通过增加 gitee 平台的包来二次打包做 backup ,也推荐使用 README 里说的 github package 的版本,虽然依赖麻烦,但是至少不会丢包。
首先要确定某个依赖是否丢包,比如 gsyvideoplayer-aliplay 拉不下来,可以通过链接判断,例如查看链接:https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-aliplay/v10.2.0/ 确认是否存在文件:
链接规则
build.log
由于不同版本之间,可能存在一些版本名称的大小写问题,例如 gsyVideoPlayer 、GSYVideoPlayer 、 gsyvideoplayer 的差异,所以当你发现丢包时,要确定在看链接时,使用的是你当前版本的大小写。
不确定大小写是否正确的,可以通过 https://jitpack.io/com/github/CarGuo/GSYVideoPlayer 看 build.log,拖到底部查看对应版本包构建路径和名称,例如:
- v10.2.0 版本的
build.log是: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/v10.2.0/build.log - v9.0.0-release-jitpack 版本的
build.log是: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/v9.0.0-release-jitpack/build.log - 8.3.3 版本的
build.log是: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/8.4.0/build.log
包链接规则
v9.0.0-release-jitpack(包含)之前的是 https://jitpack.io/ 加下方路径,版本号用自己的,比如 https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-exo2/v9.0.0-release-jitpack :
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-base/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-exo2/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-x86/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-x64/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-arm64/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-java/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-aliplay/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-armv7a/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-ex_so/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-armv5/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-androidvideocache/v9.0.0-release-jitpack
10.0.0 之后的版本是 https://jitpack.io/ 加下方路径,版本号用你需要的,比如 https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-java/v10.2.0 :
Files:
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-java/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-androidvideocache/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-arm64/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-exo2/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-x86/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-x64/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-base/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-armv5/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-ex_so/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-armv7a/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-aliplay/v10.2.0
Gitee 备份包
当你发现 jitpack 上的 github 路径包找不到了,就可以试试用 gitee 路径的。
比如 10.2.0 默认包是:
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-java:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-arm64:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-exo2:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-x86:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-x64:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-base:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv5:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-ex_so:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv7a:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-aliplay:v10.2.0那么可以将 com.github 替换为 com.gitee 试试:
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-aliplay:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv5:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-base:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-arm64:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-exo2:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-x64:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-x86:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-java:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-ex_so:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv7a:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.2.0
比如 v9.0.0-release-jitpack 默认包是:
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-base:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v9.0.0-release-jitpack可以替换为:
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-base:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v9.0.0-release-jitpack
EN
There are currently three hosting methods, as detailed in the README:
- MavenCentral: Only available after version 11.0.0, all base class packages are released and hosted here
- Github Package: It was only available in version 9.1.0, but before 11.0.0, the basic dependencies of GSYIjkJava were still hosted on jitpack
- Jitpack IO: It will still be released, but there may be random packet loss on the hosting platform
Link Rules
Addressing Random Packet Loss Issues on the JitPack Platform
To address the recurring issue of random packet loss on the JitPack platform, we primarily rely on secondary packaging through the Gitee platform as a backup. It is also recommended to use the GitHub Package version mentioned in the README, which, although more complex to set up, avoids packet loss issues.
To determine if a dependency is experiencing packet loss, such as gsyvideoplayer-aliplay failing to download, you can verify by checking the link, for example: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-aliplay/v10.2.0/ to confirm if the file exists.
build.log
Due to potential case sensitivity issues in version names, such as gsyVideoPlayer, GSYVideoPlayer, or gsyvideoplayer, when encountering packet loss, ensure the link you are checking matches the case of your current version.
If you are unsure about the correct case, you can check the build.log at https://jitpack.io/com/github/CarGuo/GSYVideoPlayer. Drag to the bottom to view the corresponding version package build path and name, For example:
- For version v10.2.0, the
build.logis: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/v10.2.0/build.log - For version v9.0.0-release-jitpack, the
build.logis: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/v9.0.0-release-jitpack/build.log - For version 8.3.3, the
build.logis: https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/8.4.0/build.log
Package Link Rules
For versions up to and including v9.0.0-release-jitpack, use https://jitpack.io/ followed by the paths below, replacing the version number with the one you need, e.g., https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-exo2/v9.0.0-release-jitpack:
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-base/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-exo2/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-x86/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-x64/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-arm64/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-java/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/GSYVideoPlayer-aliplay/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-armv7a/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-ex_so/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-armv5/v9.0.0-release-jitpack
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-androidvideocache/v9.0.0-release-jitpack
For versions after 10.0.0, use https://jitpack.io/ followed by the paths below, replacing the version number with the one you need, e.g., https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-java/v10.2.0:
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-java/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-androidvideocache/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-arm64/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-exo2/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-x86/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-x64/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-base/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-armv5/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-ex_so/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-armv7a/v10.2.0
com/github/CarGuo/GSYVideoPlayer/gsyvideoplayer-aliplay/v10.2.0
Gitee Backup Packages
If the GitHub path package on JitPack is not found, try using the Gitee path as an alternative.
For example, for version 10.2.0, the default packages are:
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-java:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-arm64:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-exo2:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-x86:v10.2.0
com.github/CarGuo.GSYVideoPlayer:gsyvideoplayer-x64:v10.2.0
com.github/CarGuo.GSYVideoPlayer:gsyvideoplayer-base:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv5:v10.2.0
com.github/CarGuo.GSYVideoPlayer:gsyvideoplayer-ex_so:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv7a:v10.2.0
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-aliplay:v10.2.0You can replace com.github with com.gitee to try:
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-aliplay:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv5:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-base:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-arm64:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-exo2:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-x64:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-x86:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-java:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-ex_so:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv7a:v10.2.0
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.2.0For example, for version v9.0.0-release-jitpack, the default packages are:
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-base:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v9.0.0-release-jitpack
com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v9.0.0-release-jitpackYou can replace them with:
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyvideoplayer-androidvideocache:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-base:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v9.0.0-release-jitpack
com.gitee.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v9.0.0-release-jitpack