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

前端 未结 30 2409
抹茶落季
抹茶落季 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:48

    I've dealt with this problem when using Sherlock ActionBar library in my project. You could do the following step, it's work for me.

    1. Right click to your project, select properties.
    2. A dialog will show up, select 'Java build path' on the left menu.
    3. Remove 'Android dependencies' and 'Android private libraries' on the right panel then click OK
    4. Clean your project (select menu Project --> Clean)
    5. Right click your project, select Android Tools -> Fix project properties
    6. Clean project once again.
    7. Restart your computer
    8. Open eclipse and Export apk

    Hope that will help you.

提交回复
热议问题