Android Studio / Gradle: proguardRelease FAILED


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 --debug option to
get more log output.

BUILD FAILED


doing stacktrace from the command line:



./gradlew assembleRelease -d --stacktrace


this is what I get:



20:45:07.245 [ERROR] [org.gradle.BuildExceptionReporter]
FAILURE: Build failed with an exception.
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter]
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] * What went
wrong:
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] Execution
failed for task
':OrariTrenitaliaApps:proguardOrariTrenitaliaFreeRelease'.
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] > 1
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter]
20:45:07.247 [ERROR] [org.gradle.BuildExceptionReporter] * Exception
is:
20:45:07.247 [ERROR] [org.gradle.BuildExceptionReporter]
org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':OrariTrenitaliaApps:proguardOrariTrenitaliaFreeRelease'.
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
.....
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] Caused by:
java.lang.ArrayIndexOutOfBoundsException: 1
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.editor.InterfaceDeleter.visitSignatureAttribute(InterfaceDeleter.java:162)
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.attribute.SignatureAttribute.accept(SignatureAttribute.java:97)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.ProgramClass.attributesAccept(ProgramClass.java:547)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.editor.InterfaceDeleter.visitProgramClass(InterfaceDeleter.java:92)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.shrink.ClassShrinker.visitProgramClass(ClassShrinker.java:78)
20:45:07.258 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.visitor.MultiClassVisitor.visitProgramClass(MultiClassVisitor.java:85)
20:45:07.258 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.shrink.UsedClassFilter.visitProgramClass(UsedClassFilter.java:62)


How can I fix it?

I, like many others, am having the problem where when I import a
project from eclipse into Android Studio, it will not work. I am
consistently getting this error:



enter image<br />
description here



At the bottom of the screen, the following message appears:



enter image<br />
description here



I have followed the steps / recommendations from the following
links but without any success:
1) href="http://stackoverflow.com/questions/24531672/android-studio-0-8-1-gradle-project-sync-failed-basic-functionality-e-g-edit">android
studio 0.8.1: Gradle project sync failed. Basic functionality (e.g.
editing, debugging) will not work properly
2) href="http://stackoverflow.com/questions/22148584/android-studio-gradle-sync-project-failed">Android
Studio - Gradle sync project failed



Does anyone have ANY recommendations for me as I have been pulling
my hair out just trying to get 1 simple hello world project imported
in from eclipse without success...



-Sil

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 get this error message from Gradle:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ruletaAfortunadaCore:proguardRelease'.
> java.io.IOException: The output jar is empty. Did you specify the
proper '-keep' options?


The whole output from the start of the building process:



Executing tasks: [clean,
:ruletaAfortunada:compileDebugSources,
:facebookSDK:compileDebugSources,
:ruletaAfortunadaCore:compileDebugSources]

Configuration on demand is an incubating feature.
:facebookSDK:clean
:ruletaAfortunada:clean UP-TO-DATE
:ruletaAfortunadaCore:clean
:facebookSDK:compileLint
:facebookSDK:copyReleaseLint UP-TO-DATE
:facebookSDK:mergeReleaseProguardFiles UP-TO-DATE
:facebookSDK:preBuild
:facebookSDK:preReleaseBuild
:facebookSDK:checkReleaseManifest
:facebookSDK:prepareReleaseDependencies
:facebookSDK:compileReleaseAidl
:facebookSDK:compileReleaseRenderscript
:facebookSDK:generateReleaseBuildConfig
:facebookSDK:generateReleaseAssets UP-TO-DATE
:facebookSDK:mergeReleaseAssets
:facebookSDK:generateReleaseResValues UP-TO-DATE
:facebookSDK:generateReleaseResources
:facebookSDK:packageReleaseResources
:facebookSDK:processReleaseManifest
:facebookSDK:processReleaseResources
:facebookSDK:generateReleaseSources
:facebookSDK:compileReleaseJava
:facebookSDK:processReleaseJavaRes UP-TO-DATE
:facebookSDK:packageReleaseJar
:facebookSDK:compileReleaseNdk
:facebookSDK:packageReleaseJniLibs UP-TO-DATE
:facebookSDK:packageReleaseLocalJar
:facebookSDK:packageReleaseRenderscript UP-TO-DATE
:facebookSDK:bundleRelease
:ruletaAfortunada:preBuild
:ruletaAfortunada:preDebugBuild
:ruletaAfortunada:checkDebugManifest
:ruletaAfortunada:preReleaseBuild
:ruletaAfortunadaCore:compileLint
:ruletaAfortunadaCore:copyReleaseLint UP-TO-DATE
:ruletaAfortunadaCore:preBuild
:ruletaAfortunadaCore:preReleaseBuild
:ruletaAfortunadaCore:checkReleaseManifest
:ruletaAfortunadaCore:preDebugBuild
:ruletaAfortunadaCore:preDebugTestBuild
:ruletaAfortunadaCore:prepareComAndroidSupportSupportV42100Library
:ruletaAfortunadaCore:prepareComGoogleAndroidGmsPlayServices6587Library
:ruletaAfortunadaCore:prepareRuletaAfortunadaFacebookSDKUnspecifiedLibrary
:ruletaAfortunadaCore:prepareReleaseDependencies
:ruletaAfortunadaCore:compileReleaseAidl
:ruletaAfortunadaCore:compileReleaseRenderscript
:ruletaAfortunadaCore:generateReleaseBuildConfig
:ruletaAfortunadaCore:generateReleaseAssets UP-TO-DATE
:ruletaAfortunadaCore:mergeReleaseAssets
:ruletaAfortunadaCore:generateReleaseResValues UP-TO-DATE
:ruletaAfortunadaCore:generateReleaseResources
:ruletaAfortunadaCore:mergeReleaseResources
:ruletaAfortunadaCore:processReleaseManifest
:ruletaAfortunadaCore:processReleaseResources
:ruletaAfortunadaCore:generateReleaseSources
:ruletaAfortunadaCore:compileReleaseJava
:ruletaAfortunadaCore:extractReleaseAnnotations
:ruletaAfortunadaCore:mergeReleaseProguardFiles UP-TO-DATE
:ruletaAfortunadaCore:compileReleaseNdk
:ruletaAfortunadaCore:packageReleaseJniLibs UP-TO-DATE
:ruletaAfortunadaCore:packageReleaseRenderscript UP-TO-DATE
:ruletaAfortunadaCore:packageReleaseResources
:ruletaAfortunadaCore:proguardRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ruletaAfortunadaCore:proguardRelease'.
> java.io.IOException: The output jar is empty. Did you specify the
proper '-keep' options?


The contents of the build.gradle file for such library project:



apply plugin: 'com.android.library'

android {
compileSdkVersion 13
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}

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

dependencies {
compile project(':facebookSDK')
compile 'com.android.support:support-v4:18.0.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.android.gms:play-services:+'
compile files('libs/chartboost.jar')
compile files('libs/mint-4.0.7.jar')
}


UPDATE: I have realized that the Android Library
Project named RuletaAfortunadaCore can be build as an standalone
project or made as a module without problems at all. It only fails to
build when building the whole RuletaAfortunada Android Project that
uses it.



The build.gradle file for such Android Project is the default one
created by Android Studio, I think, so has nothing interesting inside.
Anyway, here it is, just in case:



// Top-level build file where you can add configuration
options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}

allprojects {
repositories {
jcenter()
}
}


This is the settings.gradle:



include ':facebookSDK'
include ':ruletaAfortunadaCore'
include ':ruletaAfortunada'


And finally, just to have all of them, this is the facebookSDK
module build.gradle:



apply plugin: 'com.android.library'

android {
compileSdkVersion 9
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 9
targetSdkVersion 9
}

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

dependencies {
compile 'com.android.support:support-v4:18.0.0'
compile files('libs/bolts-android-1.1.2.jar')
}
Web Development

I updated my Android Studio to 1.0.1. I followed this tutorial href="http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0"
rel="nofollow">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?

Web Development

I am trying to run appengineUpdate to deploy my backend and am
receiving the following error message:



Failed to complete Gradle execution.

Cause:
Gradle build daemon disappeared unexpectedly (it may have been
stopped, killed or may have crashed)


Gradle console has the following message:



Configuration on demand is an incubating feature.
Relying on packaging to define the extension of the main artifact has
been deprecated and is scheduled to be removed in Gradle 2.0
:backend:appengineDownloadSdk
:backend:compileJava UP-TO-DATE
:backend:processResources UP-TO-DATE
:backend:classes UP-TO-DATE
:backend:war UP-TO-DATE
:backend:appengineExplodeApp UP-TO-DATE
:backend:appengineUpdate
Please enter code: Encountered a problem: No line found
Please see the logs
[C:UsersKyleAppDataLocalTempappcfg362857632491730137.log] for further
information.


Here is the log file text:



java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1585)
at
com.google.appengine.tools.admin.PromptReceiver.waitForCode(PromptReceiver.java:25)
at
com.google.appengine.tools.admin.OAuth2Native.authorize(OAuth2Native.java:252)
at
com.google.appengine.tools.admin.AppCfg.authorizeOauth2(AppCfg.java:419)
at
com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:188)
at
com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:122)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at
org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
at
org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at
com.google.appengine.task.appcfg.AppConfigTaskTemplate.runAppConfig(AppConfigTaskTemplate.groovy:68)
at
com.google.appengine.task.appcfg.AppConfigTaskTemplate.executeTask(AppConfigTaskTemplate.groovy:42)
at
com.google.appengine.task.AbstractTask.start(AbstractTask.groovy:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
at
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
at
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at
org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at
org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at
org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at
org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at
org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289)
at
org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
at
org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
at
org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
at
org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultTaskPlanExecutor.java:33)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:198)
at
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:266)
at
org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:135)
at
org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:95)
at
org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:31)
at
org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
at
org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
at
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
at
org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at
org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
at
org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
at
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
at
org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)
at
org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at
org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at
org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
at
org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:70)
at
org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:30)
at
org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:108)
at
org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
at
org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45)
at
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:42)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:71)
at
org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:69)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at
org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:69)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:60)
at
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:45)
at
org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordinator.java:186)
at
org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:49)
at
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.DaemonHygieneAction.execute(DaemonHygieneAction.java:39)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:32)
at
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
at
org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:51)
at
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:155)
at
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.receiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128)
at
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
at
org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)


Anyone know what could be wrong?

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 --debug option to
get more log output.

BUILD FAILED


doing stacktrace from the command line:



./gradlew assembleRelease -d --stacktrace


this is what I get:



20:45:07.245 [ERROR] [org.gradle.BuildExceptionReporter]
FAILURE: Build failed with an exception.
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter]
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] * What went
wrong:
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] Execution
failed for task
':OrariTrenitaliaApps:proguardOrariTrenitaliaFreeRelease'.
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter] > 1
20:45:07.246 [ERROR] [org.gradle.BuildExceptionReporter]
20:45:07.247 [ERROR] [org.gradle.BuildExceptionReporter] * Exception
is:
20:45:07.247 [ERROR] [org.gradle.BuildExceptionReporter]
org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':OrariTrenitaliaApps:proguardOrariTrenitaliaFreeRelease'.
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
20:45:07.248 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
20:45:07.249 [ERROR] [org.gradle.BuildExceptionReporter] at
org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
.....
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] Caused by:
java.lang.ArrayIndexOutOfBoundsException: 1
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.editor.InterfaceDeleter.visitSignatureAttribute(InterfaceDeleter.java:162)
20:45:07.256 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.attribute.SignatureAttribute.accept(SignatureAttribute.java:97)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.ProgramClass.attributesAccept(ProgramClass.java:547)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.editor.InterfaceDeleter.visitProgramClass(InterfaceDeleter.java:92)
20:45:07.257 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.shrink.ClassShrinker.visitProgramClass(ClassShrinker.java:78)
20:45:07.258 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.classfile.visitor.MultiClassVisitor.visitProgramClass(MultiClassVisitor.java:85)
20:45:07.258 [ERROR] [org.gradle.BuildExceptionReporter] at
proguard.shrink.UsedClassFilter.visitProgramClass(UsedClassFilter.java:62)


How can I fix it?

Web Development

Everything fine with the command line



gradle build


But Android Studio keep saying that



Failed to complete Gradle execution
Cause:
A fatal exeption has occurred. Program will exit


If I clear all the cache, and restart everything will be fine, but
this dialog will easily comeback again (after a build fail). I guess
that the increment build chain is not good, but the message is not
helpful at all.



Are there anythings I can do to get a more details message about
what going on, why AndroidStudio Gradle failed? where can I put thing
like --stacktrace in the Preferences of Android
Studio?

Web Development

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow