Android Studio gives me Execution failed for task ':library:proguardRelease' error after updating to Android Studio 1.0.1


Ir0nh1de
22/12/2014 10:30 am
HOME ยป 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 minifyEnabled true. I also changed it in my library project. When I tried to compile it gave me Error:Execution failed for task ':> java.io.FileNotFoundException: ProjectNamelibraryproguard-rules.txt (The system cannot find the file specified). I researched for that and I found a solution. I added blank proguard-rules.txt file into that folder. After trying to compile, it gave me even more errors. The main error now was that it cannot find symbol class PageIndicator, which is my library's class. I don't even know what can I do for that.

My project's build.gradle:

apply plugin: 'android'

android {
    compileSdkVersion 21
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "com.miesto.meniu"
        minSdkVersion 9
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}


dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':library')
    compile files('libs/volley.jar')
    compile 'com.google.android.gms:play-services:6.1.71'
    compile 'com.android.support:appcompat-v7:21.0.0'
    compile 'com.android.support:support-v4:21.0.0'
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.slider:library:1.1.0@aar'
    compile('com.google.api-client:google-api-client-xml:1.17.0-rc') {
        exclude group: 'com.google.android.google-play-services'
    }
    compile 'com.google.http-client:google-http-client-gson:1.17.0-rc'
   
compile('com.google.api-client:google-api-client-android:1.17.0-rc') {
        exclude group: 'com.google.android.google-play-services'
    }
    compile
'com.google.apis:google-api-services-drive:v2-rev105-1.17.0-rc'
    compile files('libs/YouTubeAndroidPlayerApi.jar')
}

My library's build.gradle:

apply plugin: 'com.android.library'

android {
    compileSdkVersion 21
    buildToolsVersion "20.0.0"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 19
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:21.0.0'
}

What am I doing wrong?


Related to : Android Studio gives me Execution failed for task ':library:proguardRelease' error after updating to Android Studio 1.0.1
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 proguardRelease FAILED due empty output jar library
18/12/2014 7:40 pm by asp.net in Web Development

I have imported a project from Eclipse into Android Studio that consists in an Android Library Project (RuletaAfortunadaCore) and an Android Project (RuletaAfortunada), also have some third parties library dependencies. During the import everything seemed fine, but now when I try to build it I ge


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
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
Android Studio: Error Code 1: Gradle: Execution failed for task ':app:processDebugResources'
10/12/2014 1:20 pm by The_Eclectic1 in Web Development

I want to compile a project, I got Error:Gradle: Execution failed for task ':app:processDebugResources'.

here is the exception:

Error:Gradle: Execution failed for task ':app:processDebugResources'. com.android.ide.common.internal.LoggedErrorException:


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


Android Studio / Gradle: proguardRelease FAILED
30/12/2014 2:10 pm by Matthew Damp in Web Development

Using Android Studio, I am getting a proguardRelease FAILED error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':appName:proguardAppNameRelease'.
> 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --deb
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


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
Android Studio remove duplicate copies.Execution failed for task
by camt in Web Development

So here is the errors from the gradle log:Class android.support.v4.widget.CursorAdapter.1 has already been added to output. Please remove duplicate copies.Execution failed for task ':App:dexDefaultFlavorDebug'. Could not call IncrementalTask.taskAction() on task ':App:dexDefaultFlavorDebug'The prob


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 .