c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Android

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

| | java
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: