This is my .gradle file:
apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.test.test" minSdkVersion 15 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/license.txt' exclude 'META-INF/LICENSE' exclude 'META-INF/notice.txt' exclude 'META-INF/NOTICE' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.mcxiaoke.volley:library:1.0.15' compile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.17' }
When I try to run an Android application, I get the following error:
Error: execution completed for task ': app: dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: process 'command' / usr / lib / jvm / java-8-oracle / bin / java '' terminated with non- -zero output value 2
I get this error when I add the Jackson library to the gradle file. After trying for a while, I found that the Jackson library is compatible with Android apps, and faster than other libraries like gson.
How can i solve this? I am new to Android.
android rest jackson android-volley gradle
Hammerin87
source share