Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I add the JsonPath library to my Android Studio (1.4) project I get an error as following:
Error:Execution failed for task ':app:dexDebug'. \>
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\JDK_64_bit\bin\java.exe'' finished with 
non-zero exit value 2

(I added the library via File > Project Structure > Dependencies > Library Dependency > com.jayway.jsonpath:json-path:2.0.0)

Trying to add MultiDex support for the app as suggested in a few other questions results in a different error:
Java
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. \>
java.util.zip.ZipException: duplicate entry:
org/objectweb/asm/AnnotationVisitor.class

The external libraries in my project list both asm-1.0.2 and asm-3.3.1 but removing one or both does not solve my problem.

Thank you very much in advance!
Posted
Updated 18-Jan-18 1:51am

1 solution

compile('com.jayway.jsonpath:json-path:2.4.0') {
        exclude group: 'net.minidev', module: 'asm'
    }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900