• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Failed to transform library

pashaa2k

Lurker
Jan 1, 2023
1
0
A few months ago I implemented it in my project without any problems

I had to redo some things inside my project and update some lines And now it is giving me this error like I can't find the repository

Where am I going wrong, or is this a problem with my IDE?

Code:
FAILURE: Build completed with 7 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=android-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=android-manifest, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=android-assets, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0) to match attributes {artifactType=android-jni, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find library-0.14.0.aar (com.github.yausername.youtubedl-android:library:0.14.0).
        Searched in the following locations:
            https://jitpack.io/com/github/yausername/youtubedl-android/library/0.14.0/library-0.14.0.aar

* Try:
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.
==============================================================================

* Get more help at https://help.gradle.org

How to fix?
 
You have an issue "library-0.14.0.aar" in your Android project.

The build is unable to resolve or find this dependency, which is causing several tasks to fail.

There are a few possible reasons for this issue:

  1. The repository or location where the dependency is stored may be down or unavailable. In this case, you may want to try again later or check with the repository maintainer to see if there are any known issues.

  2. The dependency may have been removed or replaced in the repository. In this case, you may need to update your project to use a different version of the dependency or find an alternative solution.

  3. There may be a problem with your build configuration or your project's dependencies section. You may want to double-check that the dependency is listed correctly in your build.gradle file and that all of your dependencies are up-to-date.
 
  • Like
Reactions: pashaa2k
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones