1

Here are the errors I get when I run "Rebuild Project"

Program type already present: org.apache.commons.net.DatagramSocketClient Message
{kind=ERROR, text=Program type already present: org.apache.commons.net.DatagramSocketClient, 
sources=[Unknown source file], tool name=Optional.of(D8)}

and

Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 
Error while merging dex archives: 
C:\Users\Dave\Studio Projects\sbandroid\app\build\intermediates\transforms\dexBuilder\debug\19, 
C:\Users\Dave\Studio Projects\sbandroid\app\build\intermediates\transforms\externalLibsDexMerger\debug\0, 
C:\Users\Dave\Studio Projects\sbandroid\app\build\intermediates\transforms\dexBuilder\debug\16.jar, 
C:\Users\Dave\Studio Projects\sbandroid\app\build\intermediates\transforms\dexBuilder\debug\17.jar, 
C:\Users\Dave\Studio Projects\sbandroid\app\build\intermediates\transforms\dexBuilder\debug\18.jar

As the title indicates, if I simply press Run or Debug in Studio, the APK comes together fine and no errors are flagged during the gradle build.

Should I be concerned about this build behavior?

InsaneCat
  • 2,115
  • 5
  • 21
  • 40

1 Answers1

1

the complaint reads ...

Program type already present: org.apache.commons.net.DatagramSocketClient

which I've answered in this answer recently - and it is adoptable, because the problem is almost "the same". you'd just have to find any duplicate org.apache.commons dependencies and then exclude them from the build (one of them has to stay left).

Martin Zeitler
  • 1
  • 19
  • 155
  • 216