JitPack:无法解析subrepo [英] JitPack: Failed to resolve subrepo

查看:536
本文介绍了JitPack:无法解析subrepo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b

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

在我的github仓库中,我有一个名为 authentication

的子模块

我只需要在我的项目中使用这个模块,所以我将它添加到我的模块的build.gradle中,如 here:

  compile'c​​om.github.MotassemJa.MoAuth:authentication:0.0 .5'

但是我一直收到

 错误:(23,13)无法解析:com.github.MotassemJa.MoAuth:authentication:0.0.5 


正如你可以在 https://jitpack.io/com/github/MotassemJa/MoAuth/0.0.5/build.log ,0.0.5是从commit ebb529c949bf7d40815c815d051d45407e8f7f71 它是 0.0.5〜2 ,那里的模块被命名为 moauth2.0



看起来你已经移动了标签,因此它在被JitPack编译和缓存后被释放。



这总是一个非常糟糕的主意修改发布后,而不是发布新版本。



我不知道是否可以让JitPack忘记缓存并重新构建应用程序,但也许它会最好将0.0.5发布版本移回原来的版本,并创建一个0.0.6版本。



You might 能够使如果使用GitHub登录到jitpack.io并删除现有构建,JitPack将重新构建您的应用程序。常见问题解答不太清楚。这可能是因为这只适用于失败的版本。


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

解决方案

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.

这篇关于JitPack:无法解析subrepo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆