“Conversion to Dalvik format failed with error 1” on external JAR

前端 未结 30 2441
抹茶落季
抹茶落季 2020-11-21 07:32

In my Android application in Eclipse I get the following error.

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already add

30条回答
  •  日久生厌
    2020-11-21 08:05

    In general, it seems that this problem comes when there are unnecessary JAR files in build path.

    I faced this problem while working on IntelliJ IDEA. For me it happened because I added JUnit and Mockito libraries which were being compiled at runtime. This needed to be set to "testing" in module properties.

提交回复
热议问题