I am trying to use Tesseract4Android for my Android application, a library from: https://github.com/adaptech-cz/Tesseract4Android.
I encountered a problem when I tested it with Kotlin:
Failed to resolve: cz.adaptech.tesseract4android:tesseract4android:4.7.0
Here are my settings:
settings.gradle.kts:
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven {
setUrl("https://jitpack.io")
}
}
}
build.gradle.kts:
dependencies {
// ...
implementation("cz.adaptech.tesseract4android:tesseract4android:4.7.0")
}
Thanks in advance!
I've checked similiar questions but failed to find the reason. I've googled for this issue but failed to find the reason.
You need to add the correct repository to the
build.gradle.ktsfile. The ones insettings.gradle.ktspluginManagementare for the resolution of plugins.