yausername / youtubedl-android

youtube-dl for android
GNU General Public License v3.0
934 stars 172 forks source link

Could not find com.github.yausername.youtubedl-android:library:-SNAPSHOT #237

Closed joh9911 closed 1 year ago

joh9911 commented 1 year ago

I get this error.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
   > Could not find com.github.yausername.youtubedl-android:library:-SNAPSHOT.
     Required by:
         project :app

2: Task failed with an exception.
-----------
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.yausername.youtubedl-android:library:-SNAPSHOT.

* What went wrong:
Execution failed for task ':app:dataBindingMergeGenClassesDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
   > Could not find com.github.yausername.youtubedl-android:library:-SNAPSHOT.
     Required by:
         project :app

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.github.yausername.youtubedl-android:library:-SNAPSHOT.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/yausername/youtubedl-android/library/-SNAPSHOT/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/com/github/yausername/youtubedl-android/library/-SNAPSHOT/library--SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/com/github/yausername/youtubedl-android/library/-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/com/github/yausername/youtubedl-android/library/-SNAPSHOT/library--SNAPSHOT.pom
       - https://jitpack.io/com/github/yausername/youtubedl-android/library/-SNAPSHOT/maven-metadata.xml
       - https://jitpack.io/com/github/yausername/youtubedl-android/library/-SNAPSHOT/library--0.14.0-g23b26d5-30.pom
     Required by:
         project :app

And here's my gradle.

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
    id 'com.google.devtools.ksp'
    id("kotlin-parcelize")
}
apply plugin: 'kotlin-android'

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

android {
    compileSdk 32
    packagingOptions {
        jniLibs {
            useLegacyPackaging = true
        }
        resources {
            excludes += ['META-INF/DEPENDENCIES']
        }
    }

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {url 'https://jitpack.io' }

    }
}
MotasemF commented 1 year ago

try using: com.github.yausername.youtubedl-android:library:4f00394