2014-05-09 44 views
5

我試圖使用jsHybugger庫(www.jshybugger.com)來調試一些javascript - 但是 - 當試圖部署開發版本到我的設備我看到以下錯誤:生成最終存檔時出錯:找到APK的重複文件:LICENSE.txt

Eclipse error

注:我使用Eclipse

此外,對於包括jsHybugger罐子兩個項目,這些都是的.classpath的:

<?xml version="1.0" encoding="UTF-8"?> 
<classpath> 
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> 
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> 
    <classpathentry exported="true" kind="lib" path="libs/jshybugger-library-4.5.2.jar"/> 
    <classpathentry exported="true" kind="lib" path="libs/gson-2.2.4.jar"/> 
    <classpathentry exported="true" kind="lib" path="libs/httpmime-4.1.1.jar"/> 
    <classpathentry exported="true" kind="lib" path="libs/icu4j-4_8_1_1.jar"/> 
    <classpathentry exported="true" kind="lib" path="libs/signpost-core-1.2.1.1.jar"/> 
    <classpathentry exported="true" kind="lib" path="libs/android-support-v4.jar"/> 
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> 
    <classpathentry exported="true" kind="lib" path="libs/twitter4j-core-3.0.5.jar"/> 
    <classpathentry kind="src" path="src"/> 
    <classpathentry kind="src" path="gen"/> 
    <classpathentry kind="output" path="bin/classes"/> 
</classpath> 


<?xml version="1.0" encoding="UTF-8"?> 
<classpath> 
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> 
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> 
    <classpathentry exported="true" kind="lib" path="/libs/jshybugger-library-4.5.2.jar"/> 
    <classpathentry exported="true" kind="lib" path="/libs/urbanairship-lib-2.1.2.jar"/> 
     <classpathentry kind="src" path="gen"/> 
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> 
    <classpathentry exported="true" kind="lib" path="/libs/gson-2.2.4.jar"/> 
    <classpathentry exported="true" kind="lib" path="/libs/httpmime-4.1.1.jar"/> 
    <classpathentry exported="true" kind="lib" path="/libs/libGoogleAnalyticsV2.jar"/> 
    <classpathentry kind="output" path="bin/classes"/> 
</classpath> 

正如你所看到的,沒有junit包括在內。

+0

這兩個項目有自己的LICENSE.TXT使用JUnit和jsHybugger在同一時間刪除一個? –

+0

完整的項目由幾個子項目組成,其中兩個項目包括jsHybugger庫,但不幸的是,這些LICENSE.TXT文件在jar中 - 是否可以從jar中刪除? –

+0

我試過使用本指南編輯jar:http://www.wikihow.com/Edit-the-Contents-of-a-.Jar-File-on-a-Mac但是,在構建項目時,Eclipse抱怨說「Conversion to Dalvik格式失敗,錯誤1' –

回答

2

我發現其中一個項目包含JUnit的:

Project properties - Java Build Path

所以我點擊「刪除」擺脫JUnit 4中 這導致測試文件夾成爲出錯 - 我刪除了文件夾!

隨後,我能夠將項目部署到我的dev設備。

結論: 這似乎並不可能,直到`LICENSE.TXT」由jsHybugger去除

+0

LICENSE.txt被重命名以防止名稱衝突(jsHybugger 4.5.3) – cyberflohr

+0

非常感謝:-) –

相關問題