Glide Version: 4.0.0-SNAPSHOT
Integration libraries: doesn't matter
Device/Android Version: doesn't matter, build error
Issue details / Repro steps / Use case background:
Since today our gradle build started giving errors.
Glide load line / GlideModule (if any) / list Adapter code (if any):
compile 'com.github.bumptech.glide:glide:4.0.0-SNAPSHOT'
Stack trace / LogCat:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_P003DebugCompile'.
> Could not find glide-parent.third_party:gif_decoder:unspecified.
Searched in the following locations:
file:/D:/jakingting/android/Android Studio/gradle/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
file:/D:/jakingting/android/Android Studio/gradle/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
https://jcenter.bintray.com/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
https://jcenter.bintray.com/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
https://jitpack.io/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
https://jitpack.io/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
http://oss.sonatype.org/content/repositories/snapshots/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
http://oss.sonatype.org/content/repositories/snapshots/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
file:/D:/jakingting/android/sdk/extras/android/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
file:/D:/jakingting/android/sdk/extras/android/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
file:/D:/jakingting/android/sdk/extras/google/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.pom
file:/D:/jakingting/android/sdk/extras/google/m2repository/glide-parent/third_party/gif_decoder/unspecified/gif_decoder-unspecified.jar
Required by:
code:app:unspecified > com.github.bumptech.glide:glide:4.0.0-SNAPSHOT
me too, make me crazy~~~~
need help~
This is the Msg:
Error:Could not find glide-parent.third_party:gif_decoder:unspecified.
Required by:
GGF:app:unspecified > com.github.bumptech.glide:glide:4.0.0-SNAPSHOT
is there sth wrong in the <dependencies>....</dependencies>?
how to resolve?thx!
@jakingting 不知道啊,看似是他们的Pom文件写错了, 比较了上几个版本,就这个版本的 dependencies节点关于GifCoder的修改了,在12号的凌晨,目测得等他们起床,毕竟有时差~~~~5555555555555555555
666666
same issue here
Using glide:4.0.0-SNAPSHOT
Gradle system.
@TWiStErRob waiting for u.......
Is there any workaround for this? Excluding the dependency doesn't solve the issue. @TWiStErRob is there someone actively working on this?
Same issue here.
Maybe using the @aar from here? https://oss.sonatype.org/content/repositories/snapshots/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/
_Morning everyone... don't be so impatient, you know there're time zones...
Even if the problem is so apparent, I would suggest to fill in the issue details, which I updated now it helps others to find the issue and us to faster diagnose it as well._
Yes, it seems it was broken a few hours ago.
I found two Gradle-compatible workarounds, _both work with integration libraries as well_.
@alinturcu, yes it does, you can use a similar technique as described in #941 for this as well:
// instead of excluding a transitive dependency, you need to add this
configurations {
// @see https://github.com/bumptech/glide/issues/1464
compile.exclude group: 'glide-parent.third_party', module: 'gif_decoder'
}
dependencies {
compile ('com.github.bumptech.glide:glide:4.0.0-SNAPSHOT') {
// for some reason this is not enough, and doesn't have any effect
//exclude group: 'glide-parent.third_party', module: 'gif_decoder'
}
// if you need GIF support, you need to re-include that module too:
compile 'com.github.bumptech.glide:gifdecoder:1.0.0-SNAPSHOT'
}
A simpler workaround: since Gradle 2.4 you can just revert to the previous version until there's a fix:
// the broken build is 4.0.0-20160912.001439-203 and probably 4.0.0-...-204 will be fixed again
// @see https://github.com/bumptech/glide/issues/1464
compile 'com.github.bumptech.glide:glide:4.0.0-20160905.222409-202'
I urge everyone to take a look at gradle dependencies --configuration compile to see why/how this one works.
_A personal note for the impatient: this is a simple dependency issue, you didn't need to wait for us to figure it out. This class of problems is not related to Glide, it's simply how you need to handle a Gradle-Maven dependency resolution issue for any library. Reporting it is important though, so it can be fixed!_
compile 'com.github.bumptech.glide:glide:4.0.0-20160905.222409-202'
useful and simple~ thx~
resolve and thx
Tnx @TWiStErRob ! Works!
Most helpful comment
_Morning everyone... don't be so impatient, you know there're time zones...
Even if the problem is so apparent, I would suggest to fill in the issue details, which I updated now it helps others to find the issue and us to faster diagnose it as well._
Yes, it seems it was broken a few hours ago.
I found two Gradle-compatible workarounds, _both work with integration libraries as well_.
@alinturcu, yes it does, you can use a similar technique as described in #941 for this as well:
A simpler workaround: since Gradle 2.4 you can just revert to the previous version until there's a fix:
I urge everyone to take a look at
gradle dependencies --configuration compileto see why/how this one works._A personal note for the impatient: this is a simple dependency issue, you didn't need to wait for us to figure it out. This class of problems is not related to Glide, it's simply how you need to handle a Gradle-Maven dependency resolution issue for any library. Reporting it is important though, so it can be fixed!_