Android/Jitpack:无法导入子模块

Android/Jitpack:无法导入子模块,android,import,module,jitpack,Android,Import,Module,Jitpack,我正在尝试导入我正在创建的android库的子模块。子模块称为progressbar 我尝试过这个和其他许多变体,但都没有成功 dependencies { implementation 'com.github.SomeKoder.Essentials:progressbar:0.1.0' } 有人能帮我找出我做错了什么吗? 提前感谢将此添加到模块构建中。gradle导致实际构建的工件: plugins { id 'com.android.library' id '

我正在尝试导入我正在创建的android库的子模块。子模块称为progressbar

我尝试过这个和其他许多变体,但都没有成功

dependencies {
    implementation 'com.github.SomeKoder.Essentials:progressbar:0.1.0'
}
有人能帮我找出我做错了什么吗?
提前感谢

将此添加到模块构建中。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导入就可以了

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'
            }
        }
    }
}