Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.1版本maven仓库缺少源码 #502

Open
wingkingbobo opened this issue Nov 15, 2023 · 2 comments
Open

3.2.1版本maven仓库缺少源码 #502

wingkingbobo opened this issue Nov 15, 2023 · 2 comments

Comments

@wingkingbobo
Copy link

问题:3.2.1版本maven仓库缺少源码
日志:

* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_adf02fe8-ab60-487e-8405-d2a4de2770cc'.
   > Could not find io.github.razerdp:BasePopup:3.2.1@aar.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/io/github/razerdp/BasePopup/3.2.1@aar/[email protected]
       - https://repo.maven.apache.org/maven2/io/github/razerdp/BasePopup/3.2.1@aar/[email protected]
     Required by:
         project :app

期望:能通过maven下载source.jar,在Android Studio中查看源码及注释。

@razerdp
Copy link
Owner

razerdp commented Nov 15, 2023

我看了下maven,仓库是正常的。
具体FileList链接:
https://repo1.maven.org/maven2/io/github/razerdp/BasePopup/3.2.1/

@wingkingbobo
Copy link
Author

#实际文件路径
https://repo.maven.apache.org/maven2/io/github/razerdp/BasePopup/3.2.1/BasePopup-3.2.1.pom
#请求路径
https://repo.maven.apache.org/maven2/io/github/razerdp/BasePopup/3.2.1@aar/[email protected]

Android Studio点击Download Source后下载的路径与实际路径不符,多了@aar
Android Gradle 插件版本:gradle-7.4-bin.zip
Android Studio 版本:Dolphin | 2021.3.1 Patch 1

但是我猜测问题不在这里,可能是本身没上传源码到maven。
参考了腾讯QMUI的maven仓库,其中应该包含sources.jar
https://repo.maven.apache.org/maven2/com/qmuiteam/qmui/2.1.0/

com/qmuiteam/qmui/2.1.0
../
qmui-2.1.0-javadoc.jar 2022-03-05 15:50 2919785
qmui-2.1.0-javadoc.jar.asc 2022-03-05 15:50 475
qmui-2.1.0-javadoc.jar.asc.md5 2022-03-05 15:50 32
qmui-2.1.0-javadoc.jar.asc.sha1 2022-03-05 15:50 40
qmui-2.1.0-javadoc.jar.asc.sha256 2022-03-05 15:50 64
qmui-2.1.0-javadoc.jar.asc.sha512 2022-03-05 15:50 128
qmui-2.1.0-javadoc.jar.md5 2022-03-05 15:50 32
qmui-2.1.0-javadoc.jar.sha1 2022-03-05 15:50 40
qmui-2.1.0-javadoc.jar.sha256 2022-03-05 15:50 64
qmui-2.1.0-javadoc.jar.sha512 2022-03-05 15:50 128
qmui-2.1.0-sources.jar 2022-03-05 15:50 472931
qmui-2.1.0-sources.jar.asc 2022-03-05 15:50 475
qmui-2.1.0-sources.jar.asc.md5 2022-03-05 15:50 32
qmui-2.1.0-sources.jar.asc.sha1 2022-03-05 15:50 40
qmui-2.1.0-sources.jar.asc.sha256 2022-03-05 15:50 64
qmui-2.1.0-sources.jar.asc.sha512 2022-03-05 15:50 128
qmui-2.1.0-sources.jar.md5 2022-03-05 15:50 32
qmui-2.1.0-sources.jar.sha1 2022-03-05 15:50 40
qmui-2.1.0-sources.jar.sha256 2022-03-05 15:50 64
qmui-2.1.0-sources.jar.sha512 2022-03-05 15:50 128
qmui-2.1.0.aar 2022-03-05 15:50 937184
qmui-2.1.0.aar.asc 2022-03-05 15:50 475
qmui-2.1.0.aar.asc.md5 2022-03-05 15:50 32
qmui-2.1.0.aar.asc.sha1 2022-03-05 15:50 40
qmui-2.1.0.aar.asc.sha256 2022-03-05 15:50 64
qmui-2.1.0.aar.asc.sha512 2022-03-05 15:50 128
qmui-2.1.0.aar.md5 2022-03-05 15:50 32
qmui-2.1.0.aar.sha1 2022-03-05 15:50 40
qmui-2.1.0.aar.sha256 2022-03-05 15:50 64
qmui-2.1.0.aar.sha512 2022-03-05 15:50 128
qmui-2.1.0.module 2022-03-05 15:50 5546
qmui-2.1.0.module.asc 2022-03-05 15:50 475
qmui-2.1.0.module.asc.md5 2022-03-05 15:50 32
qmui-2.1.0.module.asc.sha1 2022-03-05 15:50 40
qmui-2.1.0.module.asc.sha256 2022-03-05 15:50 64
qmui-2.1.0.module.asc.sha512 2022-03-05 15:50 128
qmui-2.1.0.module.md5 2022-03-05 15:50 32
qmui-2.1.0.module.sha1 2022-03-05 15:50 40
qmui-2.1.0.module.sha256 2022-03-05 15:50 64
qmui-2.1.0.module.sha512 2022-03-05 15:50 128
qmui-2.1.0.pom 2022-03-05 15:50 2411
qmui-2.1.0.pom.asc 2022-03-05 15:50 475
qmui-2.1.0.pom.asc.md5 2022-03-05 15:50 32
qmui-2.1.0.pom.asc.sha1 2022-03-05 15:50 40
qmui-2.1.0.pom.asc.sha256 2022-03-05 15:50 64
qmui-2.1.0.pom.asc.sha512 2022-03-05 15:50 128
qmui-2.1.0.pom.md5 2022-03-05 15:50 32
qmui-2.1.0.pom.sha1 2022-03-05 15:50 40
qmui-2.1.0.pom.sha256 2022-03-05 15:50 64
qmui-2.1.0.pom.sha512 2022-03-05 15:50 128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants