Android Studio Execution failed for task ':app:dexDebug'


Seba
3/12/2014 11:00 pm
HOME » Web Development

I'm trying to start my first Android Studio app and coming across the same error over and over when I try to run or debug. I'm building a music app using the Spotify API and have imported the zipped jar files in the correct directory (under libs in my app).

What seems to be the problem is that maybe my SDK folder is in another drive? I don't think so, but it was the only thing I can think it would be. I even moved over my Android Studio folder and tried running it from the same D: drive but didn't make any difference.

This is the error I am getting:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
   
D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkuild-tools19.1.0dx.bat
--dex --output
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdexdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesclassesdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdependency-cachedebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5libsjnihelpers-1.0.jar
D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkextrasandroidm2repositorycomandroidsupportsupport-v419.0.1support-v4-19.0.1.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5classes.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.android.supportappcompat-v719.0.1classes.jar
Error Code:
    1
Output:
    'D:adt-bundle-windows-x86_64-20140702' is not recognized as an
internal or external command,
    operable program or batch file.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output.

Here is some my code and gradle builds/props:

local.properties

sdk.dir=D:\adt-bundle-windows-x86_64-20140702(2)\adt-bundle-windows-x86_64-20140702\sdk

build.gradle(app)

apply plugin: 'com.android.application'

    android {
    compileSdkVersion 19
    buildToolsVersion '19.1.0' // Note: this version should match the
latest build-tools version
    // that you installed in the SDK manager

    defaultConfig {
        applicationId "com.jesse.spalding.subrosa"
        minSdkVersion 14
        targetSdkVersion 19
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    dexOptions {
        preDexLibraries = false
    }
}

    repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}

    dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.spotify.sdk:spotifysdk:1.0.0-beta5@aar'
    compile 'com.android.support:appcompat-v7:19.0.1'
}

If anyone has any idea what the deal is what this, please let me know. I need to start working on this for a final project and just can't figure this technical thing out for some reason! Thanks in advance.


Related to : Android Studio Execution failed for task ':app:dexDebug'
Android Studio Execution failed for task ':app:dexDebug'
3/12/2014 11:00 pm by Seba in Web Development

I'm trying to start my first Android Studio app and coming across the same error over and over when I try to run or debug. I'm building a music app using the Spotify API and have imported the zipped jar files in the correct directory (under libs in my app).

What seems to be the problem is


Error:Execution failed for task ':app:dexDebug'. on Android studio 1.0
16/1/2015 6:50 am by RandomWords in Web Development

I have imported my application from android studio 0.8 to 1.0. But when i am running the application i am getting the error message

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
    /home/anand/SL
UNEXPECTED TOP-LEVEL EXCEPTION: Error:Execution failed for task ':dexDebug' in android studio
25/12/2014 6:40 pm by micaleel in Web Development

Information:Gradle tasks [:assembleDebug] :preBuild :compileDebugNdk :preDebugBuild :checkDebugManifest :preReleaseBuild :facebook:compileLint :facebook:copyReleaseLint UP-TO-DATE :facebook:preBuild :facebook:preReleaseBuild :facebook:checkReleaseManifest :facebook:preDebugBuild :facebook:preDebu


Error:Execution failed for task ':app:dexDebug'
19/12/2014 7:20 pm by James Lupiani in Web Development

I was trying to add Google Maps service in emulator in Android Studio for Mac. I used this to add google play services in my emulator and now I am getting this error.


Gradle error - Execution failed for task ':app:dexDebug'
28/12/2014 11:10 am by cthulhup in Web Development

I am trying to add the MPAndroidChartLibrary to my Android Studio project, however when I try to run the app, it keeps failing with 1 error. I am not very good with gradle, so i dont really know whats going wrong.

My gradle file is this:

apply plugin: 'com.android.applicat
Error:Execution failed for task ':activity之间数据传递_1:dexDebug'
8/1/2015 3:30 am by Peter Z in Web Development

I have a problem with compilation of my app in Android Studio (Intelij) I have a gradle android project, and when I try to compile it, I have a error:

Error:Execution failed for task ':activity之间数据传递_1:dexDebug'.

com.android.ide.common.internal.LoggedErr


Execution failed for task ':app:dexDebug'.Not sure may be a dependency issue between httpclient and httpmime
27/12/2014 2:50 pm by gamefreakgcb in Web Development

In Android Studio I am getting the following errors:- Execution failed for task ':app:dexDebug'.

:app:compileDebugJava UP-TO-DATE :app:preDexDebug :app:dexDebug UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;


Android Studio execution error, "Execution failed for task"
19/1/2015 1:10 am by David Porter in Web Development

I tried to run a colleague's program in Android Studio, but I got this error:

Error:Execution failed for task ':app:compileDebugNdk'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
    C:UsersDigital StormDownloadsandroid-ndk-r10d
dk-build.cmd ND
Android Studio gives me Execution failed for task ':library:proguardRelease' error after updating to Android Studio 1.0.1
22/12/2014 10:30 am by Ir0nh1de in Web Development

I updated my Android Studio to 1.0.1. I followed this tutorial http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0 and changed from runProguard to minifyEnabl


Android Studio Execution failed for task compilefreeDebugKotlin
11/12/2014 7:50 am by Olympian Last in Web Development

Kotlin Android Gradle

I can't compile my Kotlin Android application

I have gradle build faile with error:

    Error:Execution failed for task
':app:compilefreeDebugKotlin'.
    >
com.android.build.gradle.api.BaseVariant.getProcessResources()Lcom/android/build


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .