'Could not determine dependencies of task 'compileDebugJavaWithJavac'
I am trying to run the sample from libvlc for android. Whenever I try to build the project, I get this error:
Could not determine the dependencies of task ':java_sample:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':java_sample:debugCompileClasspath'.
> Could not resolve androidx.annotation:annotation:{strictly 1.0.0}.
Required by:
project :java_sample
> Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints:
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'org.videolan.android:libvlc-all:3.1.12' --> 'androidx.annotation:annotation:1.0.1'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.collection:collection:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.cursoradapter:cursoradapter:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.media:media:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.versionedparcelable:versionedparcelable:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.documentfile:documentfile:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.print:print:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.interpolator:interpolator:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.arch.core:core-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
Constraint path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'libvlc-android-samples-master:java_sample:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.arch.core:core-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
This is my gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
sourceSets {
main {
jni.srcDirs = []
// Prevent gradle from building native code with ndk; we have our own Makefile for it.
jniLibs.srcDir 'jni/libs' // Where generated .so files are placed
assets.srcDirs = ['src/main/assets', '../assets/']
}
}
defaultConfig {
applicationId 'org.videolan.java_sample'
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'org.videolan.android:libvlc-all:3.1.12'
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
