I got this following error while running the android project, ![Android Dependency Error](https://www.infinetsoft.com/Uploads/20240220234725android_dependency_error.png)
![]()
![module app](https://www.infinetsoft.com/Uploads/20240221094139build_gradle.png)
"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](https://www.infinetsoft.com/Uploads/20240220234725android_dependency_error.png)
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](https://www.infinetsoft.com/Uploads/20240221094139build_gradle.png)
Open build gradle(Module app). I updated the dependencies and click sync now.
I ![click sync now](https://www.infinetsoft.com/Uploads/20240221094822sync-now.png)
![click sync now](https://www.infinetsoft.com/Uploads/20240221094822sync-now.png)
VIDEO GUIDE:
Post your comments / questions
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
Related Article