Reputation: 11
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.
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'
Upvotes: 0
Views: 1193
Reputation: 897
I had the same problem and when going to Jitpack.io, they said to use:
implementation 'com.github.FolioReader:FolioReader-Android:0.5.4'
Upvotes: 0
Reputation: 2512
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"
...
}
Upvotes: 0
Reputation: 1554
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
Upvotes: 1