Home > database >  No "Add to library" button when on a file
No "Add to library" button when on a file

Time:07-17

I am trying to add this fil(math parser) to my library, but there seems to be no "add to library" when i right click it. Any help?

Here's the website that I downloaded the files from idk if it will help but it's here: Image

I use JDK 8.

CodePudding user response:

The easiest way to manage dependencies for a library is to use a build tool like Maven or Gradle. These tools help you to download and utilize dependencies in your own software and give attribution to the original authors as well as include the necessary license files. You tagged this with Android Studio so I assume this is going to be a library for Android applications. Most Android applications use Gradle as a build tool. Your application probably has a build.gradle where you can more easily manage your dependencies.

CodePudding user response:

Instead of jar download I suggest just to add proper dependency to the gradle file

Maven – Gradle

implementation 'org.mariuszgromada.math:MathParser.org-mXparser:5.0.6'

Maven – Gradle (Kotlin)

implementation("org.mariuszgromada.math:MathParser.org-mXparser:5.0.6")
  • Related