Glide: com.android.dex.DexException with Glide 4.1.0 and Android Studio Beta 4

Created on 3 Sep 2017  路  3Comments  路  Source: bumptech/glide

Glide Version:
4.1.0

Integration libraries:
OKHttp3

Device/Android Version:
Any

Issue details / Repro steps / Use case background:
Upgrading to Glide 4.1.0 causes the following compile exception on Android Studio 3.0 Beta 4:

Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
> com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Landroid/support/compat/R$drawable;

Downgrading to 4.0.0 fixes the issue. Here's a demo project.

bug non-library v4

Most helpful comment

Thanks for the sample app, very helpful. After 1325d87, I'm able to build the project. You can test this yourself by using the 4.2.0-SNAPSHOT version of Glide.

All 3 comments

Hmm, looks like ee8a8eda15cf4961cda152817dfce5350ce59620 fixing a similar exception in #1972 is not complete. @sjudd **/R$*.class?

Thanks for the sample app, very helpful. After 1325d87, I'm able to build the project. You can test this yourself by using the 4.2.0-SNAPSHOT version of Glide.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ersen-osman picture ersen-osman  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

billy2271 picture billy2271  路  3Comments

Ncit picture Ncit  路  3Comments

Anton111111 picture Anton111111  路  3Comments