Fixed
Status Update
Comments
[Deleted User] <[Deleted User]> #2
The link in the above description doesn't work external to google, expanded link: https://issuetracker.google.com/issues/73450636
pa...@gmail.com <pa...@gmail.com> #3
This will be fixed in the next release.
nk...@google.com <nk...@google.com>
br...@google.com <br...@google.com>
pa...@gmail.com <pa...@gmail.com> #4
Is there a snapshot/alpha available somewhere?
Description
*What steps will reproduce the problem?*
1. Create a new Android project in AndroidStudio
2. Add espresso-web and Guava (or any other library that transitively depends on Guava) as dependencies for testing (see attached build.gradle)
3. Build the connectedAndroidTest target
*What is the expected output?*
I expect that the build succeeds and starts the tests
*What do you see instead?*
The build fails with an exception:
{{{
:app:dexDebugAndroidTest
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/thirdparty/publicsuffix/PublicSuffixPatterns;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
Error:Execution failed for task ':app:dexDebugAndroidTest'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
}}}
*What version of the product are you using? On what operating system?*
Espresso 2.2, Guava 18.0 with AndroidStudio 1.2.2 on MacOS 10.10.4