I try to use FolioReader library for use epub files in my project. I add dependencies to my project and build it but I get this errors:
FAILURE: Build completed with 7 failures.
1: Task failed with an exception.
- What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.github.codetoart:r2-shared-kotlin:1.0.4-2. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/codetoart/r2-shared-kotlin/1.0.4-2/r2-shared-kotlin-1.0.4-2.pom - https://repo.maven.apache.org/maven2/com/github/codetoart/r2-shared-kotlin/1.0.4-2/r2-shared-kotlin-1.0.4-2.pom - https://jcenter.bintray.com/com/github/codetoart/r2-shared-kotlin/1.0.4-2/r2-shared-kotlin-1.0.4-2.pom Required by: project :app > com.folioreader:folioreader:0.5.4 Could not find com.github.codetoart:r2-streamer-kotlin:1.0.4-2. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/codetoart/r2-streamer-kotlin/1.0.4-2/r2-streamer-kotlin-1.0.4-2.pom - https://repo.maven.apache.org/maven2/com/github/codetoart/r2-streamer-kotlin/1.0.4-2/r2-streamer-kotlin-1.0.4-2.pom - https://jcenter.bintray.com/com/github/codetoart/r2-streamer-kotlin/1.0.4-2/r2-streamer-kotlin-1.0.4-2.pom Required by: project :app > com.folioreader:folioreader:0.5.4
build.gradle:
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
build.gradle(app):
implementation "com.folioreader:folioreader:0.5.4"
implementation 'com.github.codetoart:r2-shared-kotlin:1.0.4-2'
CodePudding user response:
It seems this dependency, specifically the one with this group ID exists in Jitpack.io. You should simply add the jitpack.io to your gradle repositories. See here: https://jitpack.io/p/codetoart/r2-shared-kotlin
CodePudding user response:
Check this on how to implement .
You need to have these repositories
allprojects {
repositories {
...
jcenter()
maven { url "https://jitpack.io" }
...
}
}
and the following dependency
dependencies {
...
implementation "com.folioreader:folioreader:0.5.4"
...
}