Dependency conflict in JUnit tests #275
-
Hi,
Is there some configuration I'm missing for unit tests ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
The problem here is where Android tries to merge the two jar files, but does not understand service loaders (and as such doesn't know how to deal with multiple providers). The underlying services are deprecated and only there for compatibility (so you don't need either file). Have a look at: https://stackoverflow.com/questions/69761945/2-files-found-with-path-meta-inf-lgpl2-11 that shows how to deal with it (excluding is fine). |
Beta Was this translation helpful? Give feedback.
Thanks for the replicator. I've managed to figure it out. You are using an old alpha version of the android gradle plugin (8.10.0-alpha08). The problem disappears when either using the latest stable version (8.9.1) - using Android Studio Meerkat; or when using Narwhal either version 8.10.0-rc01 or the latest: 8.11.0-alpha05