Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
412 views
in Technique[技术] by (71.8m points)

java - 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.

  • What went wrong: Task 'install' is ambiguous in root project 'project'. Candidates are: 'installDebug', 'installDebugAndroidTest'.

  • Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

question from:https://stackoverflow.com/questions/65842383/jitpack-task-install-is-ambiguous-in-root-project-android-library

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The solution was to remove 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...