build.gradle - Gradle issue, Converting Application from eclipse to studio -


error :

error:execution failed task ':app:dexdebug'.

com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished non-zero exit value 2

my gradle :

apply plugin: 'com.android.application'  android {     packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/lgpl2.1'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/notice.txt'     }     compilesdkversion 22     buildtoolsversion "23.0.2"      defaultconfig {         applicationid "com.abcd"         minsdkversion 16         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile 'com.android.support:multidex:1.0.0'     compile filetree(dir: 'libs', include: ['*.jar'])     testcompile 'junit:junit:4.12'     compile 'com.google.android.gms:play-services-ads:8.1.0'     compile 'com.android.support:appcompat-v7:22.1.1'     compile files('libs/bolts-android-1.1.4.jar')     compile files('libs/bolts-android-1.1.4-javadoc.jar')     compile files('libs/parse-1.8.2.jar')     compile files('libs/parsecrashreporting-1.8.2.jar') } 

-- whats wrong in above gradle.

-- have tried gradle :

apply plugin: 'com.android.application'  android {     packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/lgpl2.1'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/notice.txt'     }     compilesdkversion 22     buildtoolsversion "23.0.2"      defaultconfig {         applicationid "com.abcd"         minsdkversion 16         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile 'com.android.support:multidex:1.0.0'     compile filetree(dir: 'libs', include: ['*.jar'])     testcompile 'junit:junit:4.12'     compile 'com.google.android.gms:play-services-ads:8.1.0'     compile 'com.android.support:appcompat-v7:22.1.1'     compile files('libs/bolts-android-1.1.4.jar')     compile files('libs/parse-1.8.2.jar')  } 


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -