我正在尝试导入我正在创建的android库的一个子模块。子模块名为progressbar。
https://jitpack.io/#SomeKoder/Essentials/0.1.0
https://github.com/SomeKoder/Essentials
dependencies {
implementation 'com.github.SomeKoder:Essentials:0.1.0'
}我尝试过这个和许多其他的变体,但都没有成功。
dependencies {
implementation 'com.github.SomeKoder.Essentials:progressbar:0.1.0'
}有人能帮我找出我做错了什么吗?提前感谢
发布于 2021-06-02 05:00:27
将其添加到模块build.gradle中将导致实际构建的构件:
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.somekoder.Essentials.progressbar'
artifactId = 'progressbar'
version = '0.1.4'
}
debug(MavenPublication) {
from components.debug
groupId = 'com.somekoder.Essentials.progressbar'
artifactId = 'progressbar-debug'
version = '0.1.4'
}
}
}
}似乎您必须在您希望为之创建工件的每个模块中添加此代码的变体。然后通过JitPack导入就可以了。
https://stackoverflow.com/questions/67798503
复制相似问题