Custom Main Gradle Template
and Custom Gradle Settings Template
checkboxes to true if they’re not already set.
Inside the mainTemplate.gradle
, add the following inside the dependencies block:
implementation("androidx.security:security-crypto:1.1.0")
If you don’t have any other custom library of your own, it should look like this
**EXTERNAL_SOURCES**
settingsTemplate.gradle
, you should leave it as-is. It adds the Google repository inside the pluginManagement block, so that’s all that is needed there.
If you didn’t successfully installed the AndroidX Crypto library you will see the following error in the Android Logcat