Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is Android Studio not Recognizing Third Party Dependencies?

Whenever I install Gradle third-party dependencies, my android studio project doesn’t recognize the library classes. For example, I’ve tried installing a library called fuzzydateformatter. Android studio doesn’t recognize the classes from that library. I’ve also tried installing other third-party libraries but the same thing happens. Only google and androidx libraries seem to work fine.

// Time Formatter
implementation 'si.virag:fuzzydateformatter:1.1.0'

PS: I’m new to android and I use kotlin

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

That library has not been updated in six years. It is only published on JCenter, which has threatened shutdown a few times. As a result, JCenter is not included as a repository in modern Android Studio projects.

The best solution would be to use another library, one that is actively being maintained.

If you insist on using this library, your choices are:

  • Use the source code of the library directly, copying it out of GitHub into your project, or
  • Adding jcenter() as a repository, in the same spot(s) in your project where you have google() and mavenCentral() (e.g., repositories closures in your project-level build.gradle file)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading