Android

Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.

Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it., someone asked me to explain?
I got this following error while running the android project, 
"Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs."
Android Dependency Error

The error indicates a version conflict on dependencies in your Android project.

Solution:

 To resolve this, you need to ensure that all dependencies use compatible versions of the Android APIs.

module app
Open build gradle(Module app). I updated the dependencies and click sync now.
click sync now

VIDEO GUIDE:

Post your comments / questions