Android : resolve external dependencies over Artifactory with Gradle

岁酱吖の 提交于 2019-12-04 19:38:32

you have double checked that "groupId:artifact2Id:artifact2Version" is in your artifactory repository? or do you accidently rely on a variable here instead of the string?

cheers, René

As @noamt said the only thing wrong was the fact I was not declaring a repositories {} section that actually allows the connection with Artifactory. I am still a bit confused why this is not directly handled by the artifactory {} section but at least it is working now.

unify

I've found that gradle by default picks up the android sdk repository:

C:\Users\YOUR_USER\android-sdks\extras\android\m2repository

Instead of:

C:\Users\YOUR_USER\.m2\repository

When looking for artifacts but the later when downloading them. Do a comparison and check if they are being downloaded in the second one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!