How to Fix Error: Could not find android.arch.lifecycle:common-java8:2.2.0 in Android Studio

Опубликовано: 21 Март 2026
на канале: Awesome Dev Notes
2,765
13

Simply uncomment the `common-java8` dependency in your build.gradle file.

1. When you get the error:

Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find android.arch.lifecycle:common-java8:2.2.0.
Required by:
project :app

Possible solution:
Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userg...

2. Then you are probably using Gradle JDK Version 11 and having `common-java8` dependency as well in your build.gradle file.

3. Simply uncomment the `common-java8` dependency

📚 Learn Android from Experts at:
https://github.com/androiddevnotes/aw...

😎 Find more Awesome Android Apps in Kotlin, MVVM, Jetpack:
https://github.com/androiddevnotes/aw...

📱 Follow us on:

⭐ Discord:
  / discord  

⭐ GitHub:
https://github.com/androiddevnotes

⭐ Twitter:
  / androiddevnotes  

⭐ Instagram:
  / androiddevnotes  

⭐ Medium:
  / androiddevnotes