JitPack: Failed to resolve subrepo

妖精的绣舞 提交于 2019-12-11 17:22:43

问题


I'm using jitpack to in my gradle as follows:

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

And in my github repo I have a sub-module called authentication

I need to use only this module in my project, so I added this to my module's build.gradle as mentioned here:

compile 'com.github.MotassemJa.MoAuth:authentication:0.0.5'

But I keep getting

Error:(23, 13) Failed to resolve: com.github.MotassemJa.MoAuth:authentication:0.0.5

回答1:


As you can see at https://jitpack.io/com/github/MotassemJa/MoAuth/0.0.5/build.log, 0.0.5 was built from commit ebb529c949bf7d40815c815d051d45407e8f7f71 which is 0.0.5~2 and there the module was named moauth2.0.

It seems you moved the tag and thus the release after it was compiled and cached by JitPack.

It is always a very bad idea to modify releases after they are done instead of releasing a new version.

I don't know whether you can make JitPack forget the cache and rebuild your application, but maybe it would be best to move the 0.0.5 release back to where it was and create a 0.0.6 release.

You might be able to make JitPack re-build your app if you log into jitpack.io with GitHub and delete the existing build. The FAQ are not too clear on that. It could be that this only works for failed builds.



来源:https://stackoverflow.com/questions/44629080/jitpack-failed-to-resolve-subrepo

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