生成最终存档时出错:找到APK的重复文件:LICENSE.txt

时间:2014-05-09 15:48:52

标签: android eclipse

我正在尝试使用jsHybugger库(www.jshybugger.com)调试一些javascript - 但是 - 当尝试将dev版本部署到我的设备时,我看到以下错误:

Eclipse error

注意:我正在使用Eclipse

此外,对于包含jsHybugger jar的两个项目,这些是.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。

1 个答案:

答案 0 :(得分:2)

我发现其中一个项目包括junit:

Project properties - Java Build Path

所以我点击了#34;删除&#34;摆脱Junit 4。 这导致测试文件夹出错 - 我删除了该文件夹!

随后,我能够将项目部署到我的开发设备。

<强>结论: 似乎不可能同时使用Junit和jsHybugger,直到`LICENSE.TXT&#34;由jsHybugger删除