Android AAPT Exception with gradle 4.1

Started by user Irudaya Raj Lourdhu
Building in workspace C:\Program Files (x86)\Jenkins\workspace\JenkinAndroidStarter
Cloning the remote Git repository
Cloning repository https://github.com/irudayambics/JenkinStarters.git

C:\Program Files (x86)\Git\bin\git.exe init C:\Program Files (x86)\Jenkins\workspace\JenkinAndroidStarter # timeout=10
Fetching upstream changes from https://github.com/irudayambics/JenkinStarters.git
C:\Program Files (x86)\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
C:\Program Files (x86)\Git\bin\git.exe fetch --tags --progress https://github.com/irudayambics/JenkinStarters.git +refs/heads/:refs/remotes/origin/
C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url https://github.com/irudayambics/JenkinStarters.git # timeout=10
C:\Program Files (x86)\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url https://github.com/irudayambics/JenkinStarters.git # timeout=10
Fetching upstream changes from https://github.com/irudayambics/JenkinStarters.git
using GIT_ASKPASS to set credentials
C:\Program Files (x86)\Git\bin\git.exe fetch --tags --progress https://github.com/irudayambics/JenkinStarters.git +refs/heads/:refs/remotes/origin/
C:\Program Files (x86)\Git\bin\git.exe rev-parse “refs/remotes/origin/master^{commit}” # timeout=10
C:\Program Files (x86)\Git\bin\git.exe rev-parse “refs/remotes/origin/origin/master^{commit}” # timeout=10
Checking out Revision 0e6948e96753228c3ea6b13ba6ede99e31432127 (refs/remotes/origin/master)
C:\Program Files (x86)\Git\bin\git.exe config core.sparsecheckout # timeout=10
C:\Program Files (x86)\Git\bin\git.exe checkout -f 0e6948e96753228c3ea6b13ba6ede99e31432127
Commit message: “Cruncher disabled"
C:\Program Files (x86)\Git\bin\git.exe rev-list b7441c38b7822ac5566d1dd0503cdfbdc3a0504e # timeout=10
[Gradle] - Launching build.
[JenkinAndroidStarter] $ cmd.exe /C '”“C:\Program Files (x86)\Jenkins\tools\hudson.plugins.gradle.GradleInstallation\Gradle_4.1\bin\gradle.bat”’ build -stacktrace && exit %%ERRORLEVEL%%"
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResourcesAAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xhdpi-v4\abc_list_focused_holo.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_list_pressed_holo_dark.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xxhdpi-v4\abc_spinner_mtrl_am_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_list_longpressed_holo.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_menu_hardkey_panel_mtrl_mult.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_list_divider_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_spinner_mtrl_am_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_cab_background_top_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xxhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_textfield_default_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_scrubber_primary_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1601154041) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xhdpi-v4\abc_list_longpressed_holo.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\fcea24bcb1093f80438d2c167e08c30c\res\drawable-mdpi-v4\notification_bg_low_pressed.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xxhdpi-v4\abc_tab_indicator_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xhdpi-v4\abc_textfield_default_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_list_pressed_holo_light.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_list_pressed_holo_light.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-xxhdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-mdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_list_focused_holo.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1592728255) : No Delegate set : lost message:\?\C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\c97a18b3f1e04b529870aaf58d9b0677\res\drawable-hdpi-v4\abc_tab_indicator_mtrl_alpha.9.png ERROR: Unable to open PNG file

Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:mergeDebugResources’.

Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:

  • Try:
    Run with --info or --debug option to get more log output.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:mergeDebugResources’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    Caused by: com.android.build.gradle.tasks.ResourceException: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:
    at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:269)
    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
    … 27 more
    Caused by: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:
    at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:326)
    at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:301)
    at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:412)
    at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:258)
    … 39 more
    Suppressed: java.lang.RuntimeException: Some file processing failed, see logs for details
    at com.android.builder.internal.aapt.QueuedResourceProcessor.waitForAll(QueuedResourceProcessor.java:121)
    at com.android.builder.internal.aapt.QueuedResourceProcessor.end(QueuedResourceProcessor.java:141)
    at com.android.builder.internal.aapt.v1.AaptV1.close(AaptV1.java:348)
    at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:266)
    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:
    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
    at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:321)
    … 42 more
    Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException:
    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
    at com.android.builder.internal.aapt.v1.AaptV1.lambda$compile$0(AaptV1.java:405)
    Caused by: com.android.builder.internal.aapt.AaptException:
    at com.android.builder.png.AaptProcess$NotifierProcessOutput.out(AaptProcess.java:392)
    at com.android.builder.png.AaptProcess$ProcessOutputFacade.out(AaptProcess.java:315)
    at com.android.utils.GrabProcessOutput$2.run(GrabProcessOutput.java:143)

  • Get more help at https://help.gradle.org

BUILD FAILED in 6s
8 actionable tasks: 8 executed
Build step ‘Invoke Gradle script’ changed build result to FAILURE
Build step ‘Invoke Gradle script’ marked build as failure
[WS-CLEANUP] Deleting project workspace…[WS-CLEANUP] done
Finished: FAILURE

Project Gradle File contents below.

Project-wide Gradle settings.

IDE (e.g. Android Studio) users:

Gradle settings configured through the IDE will override

any settings specified in this file.

For more details on how to configure your build environment visit

http://www.gradle.org/docs/current/userguide/build_environment.html

Specifies the JVM arguments used for the daemon process.

The setting is particularly useful for tweaking memory settings.

org.gradle.jvmargs=-Xmx1536m
android.enableAapt2=false
android.enableBuildCache=false

When configured, Gradle will run in incubating parallel mode.

This option should only be used with decoupled projects. More details, visit

http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

org.gradle.parallel=true

hello,I also has this question,can you have a solution?

i also can not work ,anyone come to slove this problem

I have fixed it by configuring gradle wrapper properties under “Build” tab of Jenkin job. Steps are below.

  1. Go to “Build” Tab under a job
  2. Check "Use Gradle Wrapper " and enable “Make gradlew executable”
  3. Enter “${WORKSPACE}” in Wrapper location field
  4. Enter “clean build” in Tasks field
  5. Enter “${WORKSPACE}” in Root Build script field
  6. Check “Force GRADLE_USER_HOME to use workspace”

Basically the above steps tell the gradle plugin to to use the project path to store all cache files for building the Android application.

1 Like

Try the solution given by Irudaya Raj Lourdhu.

1 Like

Thank You,so much.It works good~~~~

You are always welcome.

Open the gradle.properties and add this:

android.enableAapt2=false

it worked like a charm! Thanks a lot.

Hi
I have change as per suggestion and its working .
But when I change for Jenkins Pipeline CICD there is no option for Root Build Script and GRADLE_USER_HOME
Can you please let me know how we can fix that

R