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

依赖问题 #102

Open
hnlbxb2004 opened this issue Jan 21, 2024 · 7 comments
Open

依赖问题 #102

hnlbxb2004 opened this issue Jan 21, 2024 · 7 comments

Comments

@hnlbxb2004
Copy link

image image image 不知道是依赖后面的点的问题还是什么,我这就是读取不到版本号。不论是是有 @aar 还是没有@aar 都一样。 当我把后面的点换成下划线或者横线,版本号读取出来了。

gradle 版本号从 7.5 换到了 8.0 都一样。

@javakam
Copy link
Owner

javakam commented Jan 22, 2024

试了下这样配置没有问题。还不行的话试试"Invalidate and Restart"。
image

image

@javakam
Copy link
Owner

javakam commented Jan 22, 2024

repositories {
    google()
    mavenCentral()
    gradlePluginPortal()
    maven { url = uri("https://s01.oss.sonatype.org/content/groups/public") }
}

@hnlbxb2004
Copy link
Author

image

我查出问题了,可能我因为我使用了Version Catalog 的依赖管理导致的。我新建了一个项目,用你上面的依赖确实能下载下来,然后我开启了 version catalog 依赖管理。就出现了之前的问题了。但是不知道为什么这个会导致这个原因。

@xxxxxxH
Copy link

xxxxxxH commented Apr 11, 2024

就是aar的问题 catalog要aar去掉 就能拉下来了 而且也没开代理
image

@Payaml
Copy link

Payaml commented Jun 11, 2024

用 version catalog 管理,去掉 aar,其他的都下载了,就 com.github.javakam:file.compressor:3.9.8 下载不下来,但是本地的依赖又有,run 的时候就缺少依赖

@Payaml
Copy link

Payaml commented Jun 11, 2024

用 version catalog 管理,去掉 aar,其他的都下载了,就 com.github.javakam:file.compressor:3.9.8 下载不下来,但是本地的依赖又有,run 的时候就缺少依赖

试了一下,用 version catalog 管理 com.github.javakam:file.compressor:3.9.8 这个依赖无法下载

@Jackie-YL
Copy link

version catalog 管理,去掉aar会导致core库下载失败,带上aar会导致另外的两个库下载失败。只能不使用version catalog ,直接在build.gradle中依赖了

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

5 participants