Jitpack 任务 'install' 在根项目 Android 库中不明确

Jitpack Task 'install' is ambiguous in root project Android Library

我需要你的帮助才能上传项目,为他们提供上下文,我正在向我的库添加依赖项:

implementation 'com.google.android.gms:play-services-mlkit-text-recognition:16.1.2'
implementation 'com.google.android.gms:play-services-mlkit-face-detection:16.1.2'

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0"

def lifecycle_version = "2.2.0"
def arch_version = "2.1.0"

implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycle_version"
testImplementation "androidx.arch.core:core-testing:$arch_version"
implementation 'com.github.UlaiS.ocr-recognition:camera:1.0.20'

失败:构建失败,出现异常。

解决方案是删除 project (': opencv') from settings.gradle. ProjectDir = new File ('/ opencv')。这是为了使用库中的 opencv,因为我忘了提到它