New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate class found in modules modules maven-ant-tasks-2.1.3.jar (org.apache.maven:maven-ant-tasks:2.1.3) and maven-artifact-2.2.1.jar (org.apache.maven:maven-artifact:2.2.1) #5235
Comments
I've the same issue |
I suddenly ran into this issue in an existing app with working tests. No changes in the build files or tests, the tests started failing suddenly. |
I'm experiencing same issue when running gradle assembleAndroidTest task (executed by jitpack CI), but when gradle build or gradle install (to install library locally) is performed, everything works fine. Any info on how to resolve this? |
Finally solved it by removing the duplicated libraries manually: https://stackoverflow.com/a/57819278/4140943 |
+1, facing the issue using Robolectric |
Same issue on 4.3.1 |
you are a lifesaver @efinder2 excluding the dependency works for me for
I just forced it to exclude the conflicted version, See here for detail. My problems:
https://qiita.com/sekitaka_1214/items/5569925db2d5f27ba712 (originally from japanesse) thanks @sekitaka for providing the answer
|
maven-ant-tasks is no longer a dependency for Robolectric 4.4 |
Description
I tried to add start testing my app with robolectric. But on the first build I got a duplicated class error (see log.txt)
dependency_tree.txt
Steps to Reproduce
Create a new Project in Android studio, add robolectric 4.3 to the dependencies (or use the Code from the repo) and try to Start ExampleInstrumentation Test.
build.gradle.txt
Robolectric & Android Version
Tried to test on an Android 8.1 and use Robolectric 4.3
Link to a public git repo demonstrating the problem:
https://github.com/efinder2/RobolectricSample
P.S.
see this StackOverflow post
The text was updated successfully, but these errors were encountered: