java - Adding iText 5.5.6 to Android project with gradle exception -


i trying add itextpdf library android project using android studio (gradle). add library compile 'com.itextpdf:itextpdf:5.5.6' instruction getting error:

error:execution failed task ':app:dexdebug'. com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/opt/jdk1.7.0_79/bin/java'' finished non-zero exit value 2

my build.gradle is:

apply plugin: 'com.android.application'  android {  compilesdkversion 22  buildtoolsversion "21.1.2"  defaultconfig {     applicationid "josealopez.com.software"     minsdkversion 14     targetsdkversion 22     versioncode 104     versionname "1.0.4" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } packagingoptions {     exclude 'meta-inf/asl2.0'     exclude 'meta-inf/license'     exclude 'meta-inf/notice' } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.0.0' compile 'com.couchbase.lite:couchbase-lite-android:1.0.4' compile 'com.google.code.gson:gson:2.3.1' compile 'com.google.android.gms:play-services:7.0.0' compile 'com.itextpdf:itextpdf:5.5.6' } 

i put these 2 dependencies in gradle:

compile 'com.itextpdf:itext-pdfa:5.5.10' compile 'com.itextpdf:itextg:5.5.9' 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -