handlebars.java
handlebars.java copied to clipboard
Could not find com.github.jknack.handlebars.java:handlebars:4.1.2
When using handlebars in an Android project using recent versions of gradle and the buildtools
- gradle 3.2.1
- buildtools 28.0.3
There is an error when compiling:
Could not find com.github.jknack.handlebars.java:handlebars:4.1.2
Our build-pipeline at Bitrise is even throwing this error while we don't specifiy gradle to use these recent versions.
* What went wrong:
Execution failed for task ':app:lintVitalHousingQaRelease'.
> Could not resolve all artifacts for configuration ':app:housingMockDebugRuntimeClasspath'.
> Could not find com.github.jknack.handlebars.java:handlebars:4.1.0.
Searched in the following locations:
file:/opt/android-sdk-linux/extras/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
file:/opt/android-sdk-linux/extras/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
file:/opt/android-sdk-linux/extras/google/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
file:/opt/android-sdk-linux/extras/google/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
file:/opt/android-sdk-linux/extras/android/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
file:/opt/android-sdk-linux/extras/android/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
file:/bitrise/src/app/libs/handlebars-4.1.0.jar
file:/bitrise/src/app/libs/handlebars.jar
http://dl.bintray.com/populov/maven/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
http://dl.bintray.com/populov/maven/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
https://oss.sonatype.org/content/repositories/snapshots/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
https://oss.sonatype.org/content/repositories/snapshots/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
https://maven.fabric.io/public/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
https://maven.fabric.io/public/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
https://jitpack.io/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
https://jitpack.io/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
https://dl.google.com/dl/android/maven2/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
https://dl.google.com/dl/android/maven2/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
https://jcenter.bintray.com/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
https://jcenter.bintray.com/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
Required by:
project :app > com.github.jknack:handlebars:4.1.0
(error is the same with v4.1.2)
I checked on https://jcenter.bintray.com/com/github/jknack/handlebars/ where gradle is searching for the folder java, and not finding it. I found https://jcenter.bintray.com/com/github/jknack/handlebars.java/ but gradle is not looking here :(
I'm kind of stuck trying solve this issue. Any idea what is going on?
It seems gradle is looking for handlebars/java while it should look for handlebars.java
We had the same happen without changing anything (except clearing Gradle caches).
Gradle: 5.6.2 AGP: 3.5.0
We found a workaround:
androidTestImplementation("com.github.tomakehurst:wiremock:${wiremock_version}") {
// Flakey build issue where there is no gradle cache:
// Error: Could not find com.github.jknack.handlebars.java:handlebars:4.0.7
// These dependencies shouldn't be part of the configuration, because it's not declared in the pom.xml,
// but somehow Gradle puts it in anyway.
exclude group: 'com.github.jknack.handlebars.java'
}
Note that com/github/jknack/handlebars.java
is the root project's POM only, which is correct. But it's easy to be confused with non-existent group ID com.github.jknack.handlebars.java
.