我試圖使用jsHybugger庫(www.jshybugger.com)來調試一些javascript - 但是 - 當試圖部署開發版本到我的設備我看到以下錯誤:生成最終存檔時出錯:找到APK的重複文件:LICENSE.txt
注:我使用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包括在內。
這兩個項目有自己的LICENSE.TXT使用JUnit和jsHybugger在同一時間刪除一個? –
完整的項目由幾個子項目組成,其中兩個項目包括jsHybugger庫,但不幸的是,這些LICENSE.TXT文件在jar中 - 是否可以從jar中刪除? –
我試過使用本指南編輯jar:http://www.wikihow.com/Edit-the-Contents-of-a-.Jar-File-on-a-Mac但是,在構建項目時,Eclipse抱怨說「Conversion to Dalvik格式失敗,錯誤1' –