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

前端 未结 30 2434
抹茶落季
抹茶落季 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 07:43

    Just for the other people who still have this problem and they have tried the above answers but still getting the error (which was my case), then my solution was to delete the project from Eclipse and re-import it again.

    This made the Android library to be added again to my referenced libraries, so now I have two Android JAR files referenced, hence I deleted one of them and now it compiles fine.

    Solution: Delete the project from Eclipse IDE and then re-import it again, then check for the above solutions.

提交回复
热议问题