androidgradlejbcrypt

How to add the jbcrypt library in Android Studio


Probably a very silly problem but I cannot add jbcrypt from mindrot.org https://www.mindrot.org/projects/jBCrypt/ to my existing android studios application.

Layout of the filing for jbcrypt


Solution

  • add repository mavenCentral() in the project's build.gradle

    and then add this dependency to the module's build.gradle:

    dependencies {
        implementation "org.mindrot:jbcrypt:0.4"
    }