外部JAR上的「到Dalvik格式的轉換失敗,錯誤1」 - 「Conversion to Dalvik format failed with error 1」 on external JAR

問題:

In my Android application in Eclipse I get the following error. 在Eclipse中的Android應用程序中,出現如下錯誤。 java

UNEXPECTED TOP-LEVEL EXCEPTION: 超出預期的最高級別:
java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser; java.lang.IllegalArgumentException:已添加:Lorg / xmlpull / v1 / XmlPullParser;
.... ....
Conversion to Dalvik format failed with error 1 轉換爲Dalvik格式失敗,錯誤1
app

This error only appears when I add a specific external JAR file to my project. 僅當我向項目中添加特定的外部JAR文件時,纔會出現此錯誤。 I searched for a long time for the possible solution, but none of the possible solutions work. 我搜索了很長時間以尋找可能的解決方案,可是全部可能的解決方案都無效。 I even tried to change to Android 1.6 instead of 1.5 (the current version I use). 我什至嘗試更改成Android 1.6而不是1.5(我使用的當前版本)。 spa


解決方案:

參考一: https://stackoom.com/question/BFP9/外部JAR上的-到Dalvik格式的轉換失敗-錯誤
參考二: https://oldbug.net/q/BFP9/Conversion-to-Dalvik-format-failed-with-error-1-on-external-JAR
相關文章
相關標籤/搜索