java - Execution failure in Android app for task ':app:dexDebug' -
i new android studio , making simple weather app. wrote code still getting 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
here build.gradle:
apply plugin: 'com.android.application'
android { compilesdkversion 22 buildtoolsversion "22.0.1" defaultconfig { applicationid "com.example.aseem.sunshine.app" minsdkversion 10 targetsdkversion 22 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile files('android-support-v7-appcompat.jar') compile 'com.android.support:appcompat-v7:+' }
can me solve error , program run?
com.android.support:appcompat-v7
library being included twice in project. remove line compile files('android-support-v7-appcompat.jar')
build.gradle
. can remove .jar project.
Comments
Post a Comment