简体   繁体   English

Jitpack 任务“安装”在根项目 Android 库中不明确

[英]Jitpack Task 'install' is ambiguous in root project Android Library

I require your help to be able to upload a project, to give them context, I am adding dependencies to my 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'

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Task 'install' is ambiguous in root project 'project'.出了什么问题:任务“安装”在根项目“项目”中不明确。 Candidates are: 'installDebug', 'installDebugAndroidTest'.候选对象是:'installDebug'、'installDebugAndroidTest'。

  • Try: Run gradlew tasks to get a list of available tasks.尝试:运行 gradlew 任务以获取可用任务列表。 Run with --stacktrace option to get the stack trace.使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。

The solution was to remove project (': opencv') from settings.gradle. ProjectDir = new File ('/ opencv')解决方案是project (': opencv') from settings.gradle. ProjectDir = new File ('/ opencv') project (': opencv') from settings.gradle. ProjectDir = new File ('/ opencv') . project (': opencv') from settings.gradle. ProjectDir = new File ('/ opencv') This is for the purpose of using opencv from the library since I had forgotten to mention it这是为了使用图书馆中的 opencv 因为我忘了提及它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM