Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error generating final archive: Found duplicate file for APK: LICENSE.txt

I'm trying to use the jsHybugger library (www.jshybugger.com) to debug some javascript - HOWEVER - when attempting to deploy the dev build to my device I see the following error :

Eclipse error

Note: I am using Eclipse

Also, for the two projects that include the jsHybugger jar, these are the .classpath's :

<?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>

As you can see, there's no junit included.

like image 804
Someone Somewhere Avatar asked Nov 01 '22 00:11

Someone Somewhere


1 Answers

I discovered that one of the projects included junit :

Project properties - Java Build Path

So I clicked "REMOVE" to get rid of Junit 4. This caused the test folder to become errored - and I deleted that folder !

Subsequently, I was able to deploy the project to my dev device.

Conclusion: It doesn't appear to be possible to use Junit and jsHybugger at the same time until that `LICENSE.TXT" is removed by jsHybugger

like image 137
Someone Somewhere Avatar answered Nov 12 '22 12:11

Someone Somewhere