Skip to content Skip to sidebar Skip to footer

Unable To Resolve Dependency For ':app@debug/compileclasspath': Failed To Transform Artifact 'lifecycle-viewmodel.aar

I use latest Android Studio 3.5 version (Android Gradle plugin 3.5.0). When I try to compile I receive this error: ERROR: Unable to resolve dependency for ':app@debug/compileClass

Solution 1:

Can you please share your build.gradle file ? Although I am not sure but it may works

Solution 1: Go to "File". Click on Invalidate Cache/ Restart. Again click on Invalidate Cache / Restart

Solution 2: Change

apply plugin: 'com.android.application' to apply plugin: 'com.android.library'

Solution 3: comment out one by one in dependencies and try to run

Solution 2:

Solution 3:

In my case, updating gradle.properties worked.

Before:

org.gradle.jvmargs=-Xmx1536M

After:

org.gradle.jvmargs=-Xmx4096M

Post a Comment for "Unable To Resolve Dependency For ':app@debug/compileclasspath': Failed To Transform Artifact 'lifecycle-viewmodel.aar"